mapscript question

Didrik Pinte dpinte at ITAE.BE
Sun May 7 10:17:23 PDT 2006


Le dimanche 07 mai 2006 à 19:09 +0200, Didrik Pinte a écrit :
> 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


I've tested the drawQuery method but it does hilight the results AND
show the non selected points. I'm trying to get only the selected
points.

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/ab0307d3/attachment.sig>


More information about the MapServer-users mailing list