MapServer / MapServer-import

3 stars 2 forks source link

add getShape method to shapefileObj #810

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: sgillies@frii.com Date: 2004/08/10 - 15:55

Add a getShape method.  Given a shape index, returns the shape.
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2004/08/10 - 16:26

Done.
tbonfort commented 12 years ago

Author: dmorissette Date: 2004/08/10 - 16:40

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?
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2004/08/10 - 16:59

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).
tbonfort commented 12 years ago

Author: dmorissette Date: 2004/08/10 - 17:10

Ah, makes sense now. Thanks.