[Mapserver-users] layer not drawn in utm projection

Ed McNierney ed at topozone.com
Thu Dec 11 15:03:14 EST 2003


This is a multi-part message in MIME format.

------_=_NextPart_001_01C3C021.CF691C8A
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Niklas -
=20
(please reply to everyone on the list)
=20
The reason I ask about the coordinates is that I have seen odd behavior =
when trying to reproject extreme or edge conditions.  I cannot recall =
the details right now, but some time ago I believe I had trouble with a =
similar "backdrop" layer that hit some out-of-range or boundary =
conditions in the projection.  For example, the lat/lon rectangle =
running from -180,-90 to 180,90 cannot be projected into UTM.
=20
I would suggest creating a feature layer with a simple polygon =
(rectangle is fine) that is only large enough for your needs.  You don't =
need to try very hard to trim it precisely, but don't try to make it the =
entire globe.
=20
    - Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242=20

-----Original Message-----
From: niklas w=F6rmann [mailto:nwoe at privat.utfors.se]
Sent: Thursday, December 11, 2003 2:50 PM
To: Ed McNierney
Subject: Re: [Mapserver-users] layer not drawn in utm projection


=20

----- Original Message -----=20
From: Ed McNierney <mailto:ed at topozone.com> =20
To: niklas w=F6rmann <mailto:nwoe at privat.utfors.se>  ; =
mapserver-users at lists.gis.umn.edu=20
Sent: Thursday, December 11, 2003 5:13 PM
Subject: RE: [Mapserver-users] layer not drawn in utm projection

Niklas -
=20
Well, map files tend to have a great deal to do with how MapServer draws =
maps <g>, but I was incorrectly assuming that your rectangle was an =
inline-defined feature in the map file.  What are the coordinates of the =
rectangle in the "world_oceans_rectangle" polygon?
=20
    - Ed
=20
Hi!
about the coordinates, i dont really know, since i havent got the tools =
to inspect the data.
=20
hm, inlining how would i go about defining somethin like that?
=20
the reason i actually need a layer to be there and not just an =
imagecolor is that otherwise the=20
flash file will have "nothing" there and wont for example trap =
mouseevents etc.
=20
i am also attempting to use this layer as a means to transform from =
pixel coords to world coords, since=20
from what i understand you can only get those back in a mode=3Dquery. =
although the docs mention something
about a mode=3Dcoordinate, which might have something to do with it.
=20
=20
i am going to attempt to reproject to some other projection to see if =
its a problem specific to utm or to something else ;)
=20
=20
=20
regards
niklas woermann


------_=_NextPart_001_01C3C021.CF691C8A
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 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY style=3D"MARGIN-TOP: 2px; FONT: 10pt Arial; MARGIN-LEFT: 2px"=20
bgColor=3D#ffffff>
<DIV><SPAN class=3D748075919-11122003>Niklas -</SPAN></DIV>
<DIV><SPAN class=3D748075919-11122003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D748075919-11122003>(please reply to everyone on the=20
list)</SPAN></DIV>
<DIV><SPAN class=3D748075919-11122003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D748075919-11122003>The reason I ask about the =
coordinates is=20
that I have seen odd behavior when trying to reproject extreme or edge=20
conditions.&nbsp; I cannot recall the details right now, but some time =
ago I=20
believe I had trouble with a similar "backdrop" layer that hit some =
out-of-range=20
or boundary conditions in the projection.&nbsp; For example, the lat/lon =

rectangle running from -180,-90 to 180,90 cannot be projected into=20
UTM.</SPAN></DIV>
<DIV><SPAN class=3D748075919-11122003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D748075919-11122003>I would suggest creating a feature =
layer=20
with a simple polygon (rectangle is fine) that is only large enough for =
your=20
needs.&nbsp; You don't need to try very hard to trim it precisely, but =
don't try=20
to make it the entire globe.</SPAN></DIV>
<DIV><SPAN class=3D748075919-11122003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D748075919-11122003>&nbsp;&nbsp;&nbsp; - =
Ed</SPAN></DIV>
<DIV><SPAN class=3D748075919-11122003>
<P><FONT size=3D2>Ed McNierney<BR>President and Chief =
Mapmaker<BR>TopoZone.com /=20
Maps a la carte, Inc.<BR>73 Princeton Street, Suite 305<BR>North =
Chelmsford,=20
MA&nbsp; 01863<BR>ed at topozone.com<BR>(978) 251-4242 =
</FONT></P></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT=20
  face=3DTahoma>-----Original Message-----<BR><B>From:</B> niklas =
w=F6rmann=20
  [mailto:nwoe at privat.utfors.se]<BR><B>Sent:</B> Thursday, December 11, =
2003=20
  2:50 PM<BR><B>To:</B> Ed McNierney<BR><B>Subject:</B> Re: =
[Mapserver-users]=20
  layer not drawn in utm projection<BR><BR></FONT></DIV>
  <DIV>&nbsp;</DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV=20
    style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
    <A title=3Ded at topozone.com href=3D"mailto:ed at topozone.com">Ed =
McNierney</A>=20
    </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dnwoe at privat.utfors.se=20
    href=3D"mailto:nwoe at privat.utfors.se">niklas w=F6rmann</A> ; <A=20
    title=3Dmapserver-users at lists.gis.umn.edu=20
    =
href=3D"mailto:mapserver-users at lists.gis.umn.edu">mapserver-users at lists.g=
is.umn.edu</A>=20
    </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, December 11, =
2003 5:13=20
    PM</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: =
[Mapserver-users] layer=20
    not drawn in utm projection</DIV>
    <DIV><BR></DIV>
    <DIV><SPAN class=3D063571116-11122003>Niklas -</SPAN></DIV>
    <DIV><SPAN class=3D063571116-11122003></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=3D063571116-11122003>Well, map files tend to have a =
great=20
    deal to do with how MapServer draws maps &lt;g&gt;, but I was =
incorrectly=20
    assuming that your rectangle was an inline-defined feature in the =
map=20
    file.&nbsp; What are the coordinates of the rectangle in the=20
    "world_oceans_rectangle" polygon?</SPAN></DIV>
    <DIV><SPAN class=3D063571116-11122003></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=3D063571116-11122003>&nbsp;&nbsp;&nbsp; - =
Ed</SPAN></DIV>
    <DIV>&nbsp;</DIV>
    <DIV>Hi!</DIV>
    <DIV>about the coordinates, i dont really know, since i havent got =
the tools=20
    to inspect the data.</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>hm, inlining how would i go about defining somethin like =
that?</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>the reason i actually need a layer to be there and not just an=20
    imagecolor is that otherwise the </DIV>
    <DIV>flash file will have "nothing" there and wont for example trap=20
    mouseevents etc.</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>i am also attempting to use this layer as a means to transform =
from=20
    pixel coords to world coords, since </DIV>
    <DIV>from what i understand you can only get those back in a =
mode=3Dquery.=20
    although the docs mention something</DIV>
    <DIV>about a mode=3Dcoordinate, which might have something to do =
with=20
it.</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>i am going to attempt to reproject to some other projection to =
see if=20
    its a problem specific to utm or to something else ;)</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>regards</DIV>
    <DIV>niklas woermann</DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C3C021.CF691C8A--



More information about the mapserver-users mailing list