SWIG Mapscript

Lowell Filak lfilak at MEDINACO.ORG
Wed Sep 29 15:41:45 EDT 2004


The following message was sent by "Ryan, Adam" <ARyan at CO.LINN.OR.US> on
Wed, 29 Sep 2004 11:54:34 -0700.

> Mapservers,
>
> Two methods I use in php mapscript don't seem to be in the SWIG version.
>
> Layer->queryByIndex - this is non-critical since I can use
queryByAttribute
> with an FID
>
> Map->loadQuery - this is critical.  There is a saveQuery method, but no
> loadQuery?
>
> Thanks for any insight.
>
> Adam

Adam,

If I understand saveQuery correctly, you can do something similar to
this by using the shapeindex for each result to pull the shapes out of
the original layer (if it's a shapefile) and writing each shape to a new
shapefile. This doesn't combine all result layers into a single file
however, it means one shapefile for each layer with a result(s).
No wonder there isn't a loadQuery, parsing all the particulars back out
of a single file would be interesting if you change layer ordering at
any point.

Lowell



More information about the mapserver-users mailing list