Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#810 closed enhancement (fixed)

add getShape method to shapefileObj

Reported by: sgillies@… Owned by: sgillies@…
Priority: high Milestone:
Component: MapScript-SWIG Version: 4.3
Severity: minor Keywords:
Cc:

Description

Add a getShape method.  Given a shape index, returns the shape.

Change History (5)

comment:1 by sgillies@…, 20 years ago

Resolution: fixed
Status: newclosed

comment:2 by sgillies@…, 20 years ago

Done.

comment:3 by dmorissette, 20 years ago

For the record this method was already there in PHP MapScript, so there is
nothing to do for the PHP version.

I thought the shapefileObj::getShape() method was there in the SWIG version as
well. Was it just deleted by accident or did I overlook something important?

comment:4 by sgillies@…, 20 years ago

shapefileObj is a neglected backwater in the SWIG mapscript.  This is the
first time I've ever looked into it.  There was a 'get' method which takes
a shape as an argument, but that's bad style and inefficient (doubles calls
to msInitShape, etc).


comment:5 by dmorissette, 20 years ago

Ah, makes sense now. Thanks.
Note: See TracTickets for help on using tickets.