[mapserver-users] Zooming in to a useful itemquerie point data extent

Bart van Heijningen bart at atsence.nl
Mon Mar 25 07:19:00 EST 2002


Hi all,

Problem:
I am performing a text query on a point layer, (6 number zip code layer,
dutch format).
When you ask the result to be displayed using the "mapext=shapes" extention
the extention will be too small to see anything as we are talking about a
point query wint one point a s result.

Workaround I came up with to get the desired map extention:

The user performs a query to a 6 number zip code layer (e.g. 3527AW) I take
off the two last digits (result -> 3572), which therefore results in a
multiple point query of the area incorporating the zip code the user
actually wants.
Now "mapext=shapes" zooms in perfectly to the desired zon, however I now
have all zip codes incorporating 3572 (from AA to ZZ) om my map where I am
only interested in the one 3527AW.

So how do I use the first extent to be the exten of the second query???
I already tried numerous of things but as of now did not get any further.
I also tried someting like "map_extent=shapes" ...


I call the mapserver qeury as follows

<td><img
src="/cgi-bin/mapserv?map=[map]&item=Pc6nr&value=[value2]&mode=itemquerymap&
mapext=shapes" height="300" width="300"></td>

gives the right extent, but too many points.

<td><img
src="/cgi-bin/mapserv?map=[map]&item=Pc6nr&value=[value]&mode=itemquerymap&m
apext=shapes" height="300" width="300"></td>

gives the right point but the wrong extent of one point (not good)


TIA,

Bart

ing. Bart van Heijningen
ATsence B.V.
http://www.atsence.nl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020325/7f78517f/attachment.html


More information about the mapserver-users mailing list