Opened 20 years ago

Closed 19 years ago

#806 closed enhancement (fixed)

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 (1)

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

Download all attachments as: .zip

Change History (3)

by cdaily@…, 19 years ago

Attachment: php_mapscript.c added

Altered mapscript source

comment:1 by mapserver@…, 19 years ago

Summary: Write access to the index parameter of a dynamic generated ShapeObj 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?

comment:2 by assefa, 19 years ago

Resolution: fixed
Status: newclosed
Applied the changes to the cvs head version of php_mapscript (r1.228).
Note: See TracTickets for help on using tickets.