[mapserver-users] mapshape query
Jensen, Hannah ERDC-CRREL-NH
Hannah.Jensen at erdc.usace.army.mil
Wed Sep 19 13:50:05 PDT 2001
Hi, all. I'm a MapServer newbie, so my apologies if this question has gone
around before. I want to query a map for all features within a polygon, as
drawn on the map using the applet. To do this, I was hoping to use the
mapshape CGI variable. But when I tried to test this approach by
substituting polygon points and the mapshape variable for the imgbox for the
same area in Example 5 from the tutorial, I got no results for an area that
definitely should return results. So the URL string from the example is:
http://terrasip.gis.umn.edu/cgi-bin/mapserv?map=%2FterrasipProjects%2Ftutori
al%2Fexample5.map&imgext=74000.000000+4653929.765886+798000.000000+5621070.2
34114&imgbox=155+190+205+238&mode=nquery&layer=state_parks&layer=lakes&layer
=counties&zoom=1&submit_button=Redraw%2FQuery
and I changed it to:
http://terrasip.gis.umn.edu/cgi-bin/mapserv?map=%2FterrasipProjects%2Ftutori
al%2Fexample5.map&imgext=74000.000000+4653929.765886+798000.000000+5621070.2
34114&mapshape=155+190+155+238+205+238+205+190+155+190&mode=nquery&layer=sta
te_parks&layer=lakes&layer=counties&zoom=1&submit_button=Redraw%2FQuery
which gave:
msQueryUsingShape(): Search returned no results. No matching record(s)
found.
when it should have returned 5 state parks. I must not be using mapshape
properly. Can anyone shed some light on how to select features using a
shape rather than a rectangle? Thanks!
Cheers,
Hannah
More information about the MapServer-users
mailing list