mapscript question

Didrik Pinte dpinte at ITAE.BE
Sun May 7 10:09:00 PDT 2006


Hi,

When querying a layer in a mapfile using queryByAttributes(), is the
query parameters saved when displaying the map ? It does not seem to be
the case.

Example: 

mymap = mapscript.mapObj('.../test.map')
mylayer = mymap.getLayerByName('alayer')
res = mylayer.queryByAttributes(mymap, 'vid', 'vid == 10',
mapscript.MS_MULTIPLE)
if res = mapscript.MS_SUCCESS:
  mymap.draw()

How can I do that ? Do I have to get the results in the resultsets and
add them to a new dynamic layer ?

Thanks for your help

Didrik



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060507/3c8f8903/attachment.sig>


More information about the MapServer-users mailing list