[mapserver-users] Zooming in to a useful itemquerie point data extent
Bart van Heijningen
bart@atsence.nl
Mon, 25 Mar 2002 13:19:00 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0026_01C1D3FF.A4577200
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
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
------=_NextPart_000_0026_01C1D3FF.A4577200
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D820400112-25032002>Hi=20
all,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D820400112-25032002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D820400112-25032002>Problem:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D820400112-25032002>I am =
performing a=20
text query on a point layer, (6 number zip code layer, dutch=20
format).</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D820400112-25032002>When =
you ask the=20
result to be displayed using the "mapext=3Dshapes" extention the =
extention will be=20
too small to see anything as we are talking about a point query wint one =
point a=20
s result.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D820400112-25032002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D820400112-25032002>Workaround I came up=20
with to get the desired map extention:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D820400112-25032002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D820400112-25032002>The =
user performs a=20
query to a 6 number zip code layer (e.g. 3527AW) I take off the two =
last=20
digits (result -> 3572), which therefore results in a =
multiple=20
point query of the area incorporating the zip code the user actually=20
wants.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D820400112-25032002>Now =
"mapext=3Dshapes"=20
zooms in perfectly to the desired zon, however I now have all zip codes=20
incorporating 3572 (from AA to ZZ) om my map where I am only interested =
in the=20
one 3527AW.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D820400112-25032002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D820400112-25032002>So how =
do I use the=20
first extent to be the exten of the second query???</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D820400112-25032002>I =
already tried=20
numerous of things but as of now did not get any =
further.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D820400112-25032002>I also =
tried=20
someting like "map_extent=3Dshapes" ...</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D820400112-25032002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D820400112-25032002></SPAN></FONT><FONT=20
face=3DArial size=3D2><SPAN =
class=3D820400112-25032002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D820400112-25032002>I call =
the mapserver=20
qeury as follows</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D820400112-25032002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D820400112-25032002><td><img=20
src=3D"/cgi-bin/mapserv?map=3D[map]&item=3DPc6nr&value=3D[value2]=
&mode=3Ditemquerymap&mapext=3Dshapes"=20
height=3D"300" width=3D"300"></td></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D820400112-25032002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D820400112-25032002>gives =
the right=20
extent, but too many points.</DIV>
<DIV><BR><td><img=20
src=3D"/cgi-bin/mapserv?map=3D[map]&item=3DPc6nr&value=3D[value]&=
amp;mode=3Ditemquerymap&mapext=3Dshapes"=20
height=3D"300" width=3D"300"></td></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D820400112-25032002></SPAN></FONT><FONT=20
face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D820400112-25032002>gives =
the right=20
point but the wrong extent of one point (not good)</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D820400112-25032002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D820400112-25032002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D820400112-25032002>TIA,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D820400112-25032002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D820400112-25032002>Bart</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>ing. Bart van Heijningen</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ATsence B.V.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://www.atsence.nl/">http://www.atsence.nl</A></FONT></DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0026_01C1D3FF.A4577200--