[Mapserver-users] Dynamic extent without mapscript

Javier Castillejo Montes jcastil1 at tragsa.es
Tue Jul 6 00:11:39 PDT 2004


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C46328.809C3DC2
Content-Type: text/plain;
	charset="windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi, I would,like to do the same as Jenu. I read the answer of Stephen =
but
... Where must I put the xmin=3DX-dx .. ymax=3DY+dy and how can I pass =
these
values to the map file(if is in there)


Thanks

-----Mensaje original-----
De: Stephen Woodbridge [mailto:woodbri at swoodbridge.com]
Enviado el: martes, 06 de julio de 2004 1:49
Para: Jenu Abraham
CC: mapserver-users at lists.gis.umn.edu
Asunto: Re: [Mapserver-users] Dynamic extent without mapscript


You can calculate the an extent as:

xmin =3D X - dx;
ymin =3D Y - dy;
xmax =3D X + dx;
ymax =3D Y + dy;

where X, Y is the location of the vehicle and dx, dy are an appropriate =

constant. you might try dx and dy =3D 0.013 or 0.026 to start with if =
your=20
data is in decimal degrees (DD)

-Steve W.

Jenu Abraham wrote:

> Is there anyway to set the extent of the map based on a query in the=20
> virtual spatial file
>=20
>=20
>=20
> i'm not using mapscript
> -------------
> i have positions of vehicles updated regularly in my table...
>=20
> i'm making the virtual spatial file dynamically using asp.net
>=20
> i want the map to be zoomed automatically to a certain extent when a=20
> customer selects a particular vehicle....
> as the vehicles are on a constant move its not possible to have a =
static=20
> extent with the closed up zoom i want.
>=20
> or is there anyway to calculate the extent based on the location?
> ------------
>=20
> Jenu
>=20
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar =96 get it now!=20
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>=20
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>=20

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

------_=_NextPart_001_01C46328.809C3DC2
Content-Type: text/html;
	charset="windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dwindows-1252">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: [Mapserver-users] Dynamic extent without mapscript</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hi, I would,like to do the same as Jenu. I read the =
answer of Stephen but ... Where must I put the xmin=3DX-dx .. =
ymax=3DY+dy and how can I pass these values to the map file(if is in =
there)</FONT></P>
<BR>

<P><FONT SIZE=3D2>Thanks</FONT>
</P>

<P><FONT SIZE=3D2>-----Mensaje original-----</FONT>
<BR><FONT SIZE=3D2>De: Stephen Woodbridge [<A =
HREF=3D"mailto:woodbri at swoodbridge.com">mailto:woodbri at swoodbridge.com</=
A>]</FONT>
<BR><FONT SIZE=3D2>Enviado el: martes, 06 de julio de 2004 1:49</FONT>
<BR><FONT SIZE=3D2>Para: Jenu Abraham</FONT>
<BR><FONT SIZE=3D2>CC: mapserver-users at lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2>Asunto: Re: [Mapserver-users] Dynamic extent without =
mapscript</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>You can calculate the an extent as:</FONT>
</P>

<P><FONT SIZE=3D2>xmin =3D X - dx;</FONT>
<BR><FONT SIZE=3D2>ymin =3D Y - dy;</FONT>
<BR><FONT SIZE=3D2>xmax =3D X + dx;</FONT>
<BR><FONT SIZE=3D2>ymax =3D Y + dy;</FONT>
</P>

<P><FONT SIZE=3D2>where X, Y is the location of the vehicle and dx, dy =
are an appropriate </FONT>
<BR><FONT SIZE=3D2>constant. you might try dx and dy =3D 0.013 or 0.026 =
to start with if your </FONT>
<BR><FONT SIZE=3D2>data is in decimal degrees (DD)</FONT>
</P>

<P><FONT SIZE=3D2>-Steve W.</FONT>
</P>

<P><FONT SIZE=3D2>Jenu Abraham wrote:</FONT>
</P>

<P><FONT SIZE=3D2>> Is there anyway to set the extent of the map =
based on a query in the </FONT>
<BR><FONT SIZE=3D2>> virtual spatial file</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> i'm not using mapscript</FONT>
<BR><FONT SIZE=3D2>> -------------</FONT>
<BR><FONT SIZE=3D2>> i have positions of vehicles updated regularly =
in my table...</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> i'm making the virtual spatial file dynamically =
using asp.net</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> i want the map to be zoomed automatically to a =
certain extent when a </FONT>
<BR><FONT SIZE=3D2>> customer selects a particular =
vehicle....</FONT>
<BR><FONT SIZE=3D2>> as the vehicles are on a constant move its not =
possible to have a static </FONT>
<BR><FONT SIZE=3D2>> extent with the closed up zoom i want.</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> or is there anyway to calculate the extent =
based on the location?</FONT>
<BR><FONT SIZE=3D2>> ------------</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Jenu</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> =
_________________________________________________________________</FONT>=

<BR><FONT SIZE=3D2>> FREE pop-up blocking with the new MSN Toolbar =
=96 get it now! </FONT>
<BR><FONT SIZE=3D2>> <A =
HREF=3D"http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/" =
TARGET=3D"_blank">http://toolbar.msn.click-url.com/go/onm00200415ave/dir=
ect/01/</A></FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> =
_______________________________________________</FONT>
<BR><FONT SIZE=3D2>> Mapserver-users mailing list</FONT>
<BR><FONT SIZE=3D2>> Mapserver-users at lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2>> <A =
HREF=3D"http://lists.gis.umn.edu/mailman/listinfo/mapserver-users" =
TARGET=3D"_blank">http://lists.gis.umn.edu/mailman/listinfo/mapserver-us=
ers</A></FONT>
<BR><FONT SIZE=3D2>> </FONT>
</P>

<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Mapserver-users mailing list</FONT>
<BR><FONT SIZE=3D2>Mapserver-users at lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://lists.gis.umn.edu/mailman/listinfo/mapserver-users" =
TARGET=3D"_blank">http://lists.gis.umn.edu/mailman/listinfo/mapserver-us=
ers</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C46328.809C3DC2--



More information about the MapServer-users mailing list