MapServer / MapServer-import

3 stars 2 forks source link

no support for Features in scripting interface #818

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: pspencer@dmsolutions.ca Date: 2004/08/12 - 22:59

When using a layer to draw inline features, there is a method (at least in PHP
MapScript) to add new features, but there is no way to affect existing features
(i.e. remove them).

To be consistent, there should be a numfeatures member on a layerObj, and a
getFeature( nFeatureIndex ) method to retrieve a featureObj.  featureObj needs
at least a set( "status", MS_DELETE ) method (at least to suit my current purposes)
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2004/08/13 - 02:02

Paul, I'm moving this to the mapscript-php component.

The SWIG mapscript's getShape() method works for inline features.  See Bug 562.

A related issue is Bug 811 -- I'm proposing that we make the linked list that
is the 'features' attribute of a layerObj a first-class mapscript object.  It
would be like a shape collection and allow "batch" manipulation of shapes.
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2004/09/25 - 18:08

See bug 878.  In the 4.4 release, the SWIG mapscripts have a 
layerObj::getFeature method that works for inline as well as normal
layers.