[Mapserver-users] Zoom to Layer

Thomas Bartlett tbartlett at dddd.com.au
Thu Mar 27 14:00:14 PST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0065_01C2F508.7255E310
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

G'Day all,

Is there a simple means of getting mapserver to zoom to the extent of a =
specific layer (or even all layers).  I only ask because I noticed that =
when producing the GetCapatibilites XML document (I am using MapServer =
as a WMS Server) I noticed that it output the following tags for each =
layer, as well as the overall extent of all layers.  Tags look like =
this:

        <LatLonBoundingBox minx=3D"72" miny=3D"-55.9612" =
maxx=3D"170.731" maxy=3D"-2.10025" />
        <BoundingBox SRS=3D"EPSG:4326" minx=3D"72" miny=3D"-55.9612" =
maxx=3D"170.731" maxy=3D"-2.10025" />

I am basically trying to implement an ESRI style "Zoom to Layer" type =
button and I don't want to hardcode the layer extents if I can get away =
with it. =20

Server=3D WIN XP running IIS with Mapplet and JavaScript

Cheers

Thomas Bartlett
-------------------------------------------------------------------------=
---------------------------------
GIS Technician
Digital (Digest) Data Design Pty Ltd=20
Military GIS Professionals and Consultants=20
http://www.dddd.com.au/=20
Telephone: 02 6286 9555=20
Facsimile: 02 6286 9888=20
Postal : PO Box 683 MAWSON  ACT  2607
------=_NextPart_000_0065_01C2F508.7255E310
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=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>G'Day all,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Is there a simple means of getting mapserver to zoom =
to the=20
extent of a specific layer (or even all layers).  I only ask =
because I=20
noticed that when producing the GetCapatibilites XML document (I am =
using=20
MapServer as a WMS Server) I noticed that it output the following tags =
for each=20
layer, as well as the overall extent of all layers.  Tags look like =

this:</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>       =20
<LatLonBoundingBox minx=3D"72" miny=3D"-55.9612" maxx=3D"170.731" =
maxy=3D"-2.10025"=20
/><BR>        <BoundingBox=20
SRS=3D"EPSG:4326" minx=3D"72" miny=3D"-55.9612" maxx=3D"170.731" =
maxy=3D"-2.10025"=20
/></FONT></DIV><FONT size=3D2>
<DIV><BR>I am basically trying to implement an ESRI style "Zoom to =
Layer" type=20
button and I don't want to hardcode the layer extents if I can get away =
with=20
it.  </DIV>
<DIV> </DIV>
<DIV>Server=3D WIN XP running IIS with Mapplet and JavaScript</DIV>
<DIV> </DIV>
<DIV>Cheers</DIV>
<DIV></FONT><FONT size=3D2> </DIV></FONT>
<DIV><FONT size=3D2>Thomas=20
Bartlett<BR>-------------------------------------------------------------=
---------------------------------------------<BR>GIS=20
Technician<BR>Digital (Digest) Data Design Pty Ltd <BR>Military GIS=20
Professionals and Consultants <BR><A=20
href=3D"http://www.dddd.com.au/">http://www.dddd.com.au/</A> =
<BR>Telephone: 02=20
6286 9555 <BR>Facsimile: 02 6286 9888 <BR>Postal : PO Box 683 =
MAWSON =20
ACT  2607</FONT></DIV></BODY></HTML>

------=_NextPart_000_0065_01C2F508.7255E310--




More information about the MapServer-users mailing list