Ticket #806 (closed enhancement: fixed)

Opened 9 years ago

Last modified 8 years ago

Write access to the index parameter of a dynamic generated ShapeObj

Reported by: mapserver@… Owned by: mapserverbugs
Priority: high Milestone:
Component: MapScript-PHP Version: 4.3
Severity: minor Keywords:
Cc:

Description

PHP mapscript lacks of the ability to write the shapeindexes of a dynamic
generated ShapeObj like it exists e.g. in Perl Mapscript ( $shp->{index} = $id ).
The ability to set the shapeindex would avoid the error message below while
doing a querybypoint.

$layer->getShape($oRes->tileindex, $oRes->shapeindex);

Fatal error: [MapServer Error]: msINLINELayerGetShape(): No inline feature with
this index. in /home/nicol/mapserver/pkt-obj.php on line 140

Attachments

php_mapscript.c Download (427.4 KB) - added by cdaily@… 8 years ago.
Altered mapscript source

Change History

Changed 8 years ago by cdaily@…

Altered mapscript source

Changed 8 years ago by mapserver@…

  • summary changed from Write access to the index parameter of a dynamic generated ShapeObj to Write access to the index parameter of a dynamic generated ShapeObj
I tested the patch Camden submitted. It works fine for me. @DMSG: Could you
please commit it to the cvs tree or is some futher work to do?

Changed 8 years ago by assefa

  • status changed from new to closed
  • resolution set to fixed
Applied the changes to the cvs head version of php_mapscript (r1.228).
Note: See TracTickets for help on using tickets.