[Mapserver-users] RE: [Mapserver-users] How to query (UTM) coordinates
Javier Castillejo Montes
jcastil1 at tragsa.es
Fri Jul 30 01:28:20 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_01C4760F.2E585286
Content-Type: text/plain;
charset="utf-8"
HI Yusuy
well here is a scratch of the files
map
LAYER # comarca
NAME comarca
DATA comarc
STATUS off
TYPE polygon
GROUP Etiquetas
PROJECTION
"init=epsg:23030"
END
METADATA
"title" "Nombre Comar"
"grupo" "eti"
END
LABELITEM "Nombre"
CLASSITEM "Comarcas_i"
CLASS
COLOR -1 -1 -1
LABEL
COLOR 132 31 31
SHADOWCOLOR 218 218 218
SHADOWSIZE 2 2
TYPE TRUETYPE
FONT arial
SIZE 8
ANTIALIAS FALSE
POSITION CL
PARTIALS FALSE
MINDISTANCE 300
BUFFER 4
END # end of label
END # end of class
END # comarca label layer ends here
LAYER # Campos
NAME campos
DATA campRUR
STATUS default
TYPE point
GROUP proyectos
HEADER "../html/FrameQueryTemplate.html"
template "../html/FrameMapa.html"
MAXSCALE 1000000
MINSCALE 750000
PROJECTION
"init=epsg:23030"
END
METADATA
"title" "Informacion de los campos"
END
tolerance 5
SYMBOLSCALE 1000000
CLASS
symbol 'circle'
size 1
COLOR 248 213 204
OUTLINECOLOR 248 213 204
END
END
html named "FrameMapa"
the code you need is the code on HOWTO jbox into the
documentation, it is the code I use in the jbox code you
just add, for UTM Coordinates, in the function
"mousemove_handler" the following
X UTM = (((x * ([maxx] - [minx])) / xlenofyourmap) +
[minx])
y UTM = ([maxy] - (((y * ([maxy] - [miny])) /
ylenofyourmap)))
and show the results where you want
set the query option on the mode value and ... just clic on
the point you what to query
header named "FrameQueryTemplate" (where you will set the result of the
query)
<html>
<body >
Nombre [Nom]
Superficie [Sup]
Rural [rur]
</body>
<html>
If you have any doubt do not hesitate to tell me
-----Mensaje original-----
De: Yusuf [mailto:yusufad at myrealbox.com]
Enviado el: viernes, 30 de julio de 2004 11:39
Para: mapserver-users at lists.gis.umn.edu
Asunto: Re: [Mapserver-users] How to query (UTM) coordinates
Hola Javier,
> for now I can only attach the files.
I think you forgot something. Always happens, but its only a real
problem with hard mail. =)
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
------_=_NextPart_001_01C4760F.2E585286
Content-Type: text/html;
charset="utf-8"
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=3Dutf-8">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: [Mapserver-users] How to query (UTM) coordinates</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>HI Yusuy</FONT>
</P>
<P><FONT SIZE=3D2>well here is a scratch of the files</FONT>
</P>
<P><FONT SIZE=3D2>map</FONT>
<BR> =
<FONT SIZE=3D2>LAYER # =
comarca</FONT>
<BR> =
=
=
<FONT =
SIZE=3D2>NAME =
comarca</FONT>
<BR> =
=
=
<FONT =
SIZE=3D2>DATA =
comarc</FONT>
<BR> =
=
=
<FONT =
SIZE=3D2>STATUS off</FONT>
<BR> =
=
=
<FONT =
SIZE=3D2>TYPE =
polygon</FONT>
<BR> =
=
=
<FONT =
SIZE=3D2>GROUP =
Etiquetas</FONT>
<BR> =
=20
<BR> =
=
=
<FONT =
SIZE=3D2>PROJECTION</FONT>
<BR> =
=
=
=
<FONT =
SIZE=3D2>"init=3Depsg:23030"</FONT>
<BR> =
=
=
<FONT SIZE=3D2>END</FONT>
<BR> =
=20
<BR> =
=
=
<FONT =
SIZE=3D2>METADATA</FONT>
<BR> =
=
=
=
<FONT =
SIZE=3D2>"title" "Nombre Comar"</FONT>
<BR> =
=
=
=
<FONT =
SIZE=3D2>"grupo" "eti"</FONT>
<BR> =
=
=
<FONT =
SIZE=3D2>END =
</FONT>
<BR> =
=20
<BR> =
=
=
<FONT SIZE=3D2>LABELITEM =
"Nombre"</FONT>
<BR> =
=
=
<FONT =
SIZE=3D2>CLASSITEM "Comarcas_i"</FONT>
<BR> =
=
=
<FONT SIZE=3D2>CLASS</FONT>
<BR> =
=
=
=
<FONT =
SIZE=3D2>COLOR -1 -1 -1</FONT>
<BR> =
=
=
=
<FONT SIZE=3D2>LABEL</FONT>
<BR> =
=
=
=
=
<FONT SIZE=3D2>COLOR 132 31 =
31</FONT>
<BR> =
=
=
=
=
<FONT SIZE=3D2>SHADOWCOLOR =
218 218 218</FONT>
<BR> =
=
=
=
=
<FONT SIZE=3D2>SHADOWSIZE 2 =
2</FONT>
<BR> =
=
=
=
=
<FONT SIZE=3D2>TYPE =
TRUETYPE</FONT>
<BR> =
=
=
=
=
<FONT SIZE=3D2>FONT =
arial</FONT>
<BR> =
=
=
=
=
<FONT SIZE=3D2>SIZE 8</FONT>
<BR> =
=
=
=
=
<FONT SIZE=3D2>ANTIALIAS =
FALSE</FONT>
<BR> =
=
=
=
=
<FONT SIZE=3D2>POSITION =
CL</FONT>
<BR> =
=
=
=
=
<FONT SIZE=3D2>PARTIALS =
FALSE</FONT>
<BR> =
=
=
=
=
<FONT SIZE=3D2>MINDISTANCE =
300</FONT>
<BR> =
=
=
=
=
<FONT SIZE=3D2>BUFFER =
4</FONT>
<BR> =
=
=
=
<FONT SIZE=3D2>END # end of =
label</FONT>
<BR> =
=
=
<FONT SIZE=3D2>END # end of =
class</FONT>
<BR> =
<FONT SIZE=3D2>END # comarca =
label layer ends here</FONT>
<BR> =
<FONT SIZE=3D2>LAYER # =
Campos</FONT>
<BR> =
=
<FONT =
SIZE=3D2>NAME =
campos</FONT>
<BR> =
=
<FONT =
SIZE=3D2>DATA campRUR</FONT>
<BR> =
=
<FONT =
SIZE=3D2>STATUS default</FONT>
<BR> =
=
<FONT =
SIZE=3D2>TYPE point</FONT>
<BR> =
=
<FONT =
SIZE=3D2>GROUP =
proyectos</FONT>
<BR> =
=
=20
<BR> =
=
<FONT SIZE=3D2>HEADER =
"../html/FrameQueryTemplate.html"</FONT>
<BR> =
=
<FONT SIZE=3D2>template =
"../html/FrameMapa.html"</FONT>
<BR> =
=
<FONT SIZE=3D2>MAXSCALE =
1000000</FONT>
<BR> =
=
<FONT SIZE=3D2>MINSCALE =
750000</FONT>
<BR> =
=
<FONT =
SIZE=3D2>PROJECTION</FONT>
<BR> =
=
<FONT SIZE=3D2> =
"init=3Depsg:23030"</FONT>
<BR> =
=
<FONT SIZE=3D2>END</FONT>
<BR> =
=
<FONT =
SIZE=3D2>METADATA</FONT>
<BR> =
=
=
<FONT =
SIZE=3D2>"title" "Informacion de los campos"</FONT>
<BR> &=
nbsp; <FONT =
SIZE=3D2>END =
</FONT>
<BR> =
=
<FONT SIZE=3D2>tolerance =
5</FONT>
<BR> =
=
<FONT SIZE=3D2>SYMBOLSCALE =
1000000</FONT>
<BR> =
=
<FONT =
SIZE=3D2>CLASS </FONT>
<BR> =
=
=
<FONT SIZE=3D2>symbol =
'circle'</FONT>
<BR> =
=
=
<FONT SIZE=3D2>size 1</FONT>
<BR> =
=
=
<FONT SIZE=3D2>COLOR 248 213 =
204</FONT>
<BR> =
=
=
<FONT SIZE=3D2>OUTLINECOLOR =
248 213 204</FONT>
<BR> =
=
<FONT =
SIZE=3D2>END </FONT>
<BR> =
<FONT SIZE=3D2>END </FONT>
</P>
<BR>
<P><FONT SIZE=3D2>html named "FrameMapa"</FONT>
</P>
<P> =
<FONT SIZE=3D2>the code you =
need is the code on HOWTO jbox into the documentation, it is the code I =
use in the jbox =
code you just add, for UTM Coordinates, in the function =
=
=
=
=
"mousemove_handler" the following </FONT></P>
<P> =
=20
<BR> =
=
<FONT SIZE=3D2>X UTM =3D =
(((x * ([maxx] - [minx])) / xlenofyourmap) + [minx])</FONT>
<BR> =
=
=20
<BR> =
=
<FONT SIZE=3D2>y =
UTM =3D ([maxy] - (((y * ([maxy] - [miny])) / =
ylenofyourmap)))</FONT>
<BR> =
=20
<BR> =
<FONT SIZE=3D2>and show the =
results where you want</FONT>
</P>
<P> =
<FONT SIZE=3D2>set the query =
option on the mode value and ... just clic on the point you what to =
=
=
query</FONT></P>
<P><FONT SIZE=3D2>header named "FrameQueryTemplate" (where =
you will set the result of the query)</FONT>
</P>
<P> =
<FONT =
SIZE=3D2><html></FONT>
<BR> =
<FONT SIZE=3D2><body =
></FONT>
<BR> =
<FONT SIZE=3D2>Nombre =
[Nom]</FONT>
<BR> =
<FONT SIZE=3D2>Superficie =
[Sup]</FONT>
<BR> =
<FONT SIZE=3D2>Rural =
[rur]</FONT>
<BR> =
<FONT =
SIZE=3D2></body></FONT>
<BR> =
<FONT =
SIZE=3D2><html></FONT>
</P>
<BR>
<P><FONT SIZE=3D2>If you have any doubt do not hesitate to tell =
me</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>-----Mensaje original-----</FONT>
<BR><FONT SIZE=3D2>De: Yusuf [<A =
HREF=3D"mailto:yusufad at myrealbox.com">mailto:yusufad at myrealbox.com</A>]<=
/FONT>
<BR><FONT SIZE=3D2>Enviado el: viernes, 30 de julio de 2004 =
11:39</FONT>
<BR><FONT SIZE=3D2>Para: mapserver-users at lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2>Asunto: Re: [Mapserver-users] How to query (UTM) =
coordinates</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>Hola Javier,</FONT>
</P>
<P><FONT SIZE=3D2>> for now I can only attach the =
files.</FONT>
</P>
<P><FONT SIZE=3D2>I think you forgot something. Always happens, =
but its only a real </FONT>
<BR><FONT SIZE=3D2>problem with hard mail. =3D)</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_01C4760F.2E585286--
More information about the MapServer-users
mailing list