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

Lowell Filak lfilak at medinaco.org
Mon Mar 25 09:23:33 EST 2002


This may help;
http://mapserver.gis.umn.edu/wilma/mapserver-users/0007/msg00026.html
Lowell F.

The following message was sent by "Bart van Heijningen" <bart at atsence.nl> on Mon, 25 Mar 2002 13:19:00 +0100.

> 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
> 
> 




More information about the mapserver-users mailing list