[Mapserver-users] layer not drawn in utm projection

Ed McNierney ed at topozone.com
Thu Dec 11 08:13:17 PST 2003


This is a multi-part message in MIME format.

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

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
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 10:52 AM
To: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] layer not drawn in utm projection


Hi!
i doubt that the map file has a great deal to do with it,
=20
=20
here it is..
=20
i set the extent etc from cgi-parameters
=20
NAME M6H2_

units kilometers
SIZE 800 600
=20

SHAPEPATH "c:/PF/AG/apache2/htdocs/ms/data"
FONTSET "c:/PF/AG/apache2/htdocs/ms/fonts/fonts.list"
SYMBOLSET "c:/PF/AG/apache2/htdocs/ms/symbols/symbols35.sym"
=20
IMAGETYPE swf
IMAGECOLOR 255 169 191

WEB
  TEMPLATE s6dev.html
  IMAGEPATH "c:/PF/AG/apache2/htdocs/tmp/"
  IMAGEURL "/tmp/"
END
=20
PROJECTION
  "proj=3Dlatlong"
  "ellps=3DWGS84"
  "lat_0=3D0"
  "lon_0=3D0"
END
above projection works fine,
but not the one below, regardless of zone
=20
PROJECTION
=20
"proj=3Dutm"
"zone=3D30"
 "ellps=3DWGS84"
"datum=3DWGS84"
=20
END
=20
this is the layer
LAYER=20
PROJECTION
  "proj=3Dlatlong"
  "ellps=3DWGS84"
  "lat_0=3D0"
  "lon_0=3D0"
END
  NAME baks
  DATA drainage/world_oceans_rectangle
  STATUS default
  TYPE polygon
  CLASS
    NAME "muts"
    COLOR 151 169 191
  END
END # end of layer object
=20
it really is strange, i will check to see if i can get it not to draw =
using some other projections
=20
niklas woermann


------_=_NextPart_001_01C3C001.B0284217
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=3D063571116-11122003>Niklas -</SPAN></DIV>
<DIV><SPAN class=3D063571116-11122003></SPAN> </DIV>
<DIV><SPAN class=3D063571116-11122003>Well, map files tend to have a =
great deal to=20
do with how MapServer draws maps <g>, but I was incorrectly =
assuming that=20
your rectangle was an inline-defined feature in the map file.  What =
are the=20
coordinates of the rectangle in the "world_oceans_rectangle"=20
polygon?</SPAN></DIV>
<DIV><SPAN class=3D063571116-11122003></SPAN> </DIV>
<DIV><SPAN class=3D063571116-11122003>    - =
Ed</SPAN></DIV>
<DIV><SPAN class=3D063571116-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  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
  10:52 AM<BR><B>To:</B> =
mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B>=20
  Re: [Mapserver-users] layer not drawn in utm =
projection<BR><BR></FONT></DIV>
  <DIV>Hi!</DIV>
  <DIV>i doubt that the map file has a great deal to do with it,</DIV>
  <DIV> </DIV>
  <DIV> </DIV>
  <DIV>here it is..</DIV>
  <DIV> </DIV>
  <DIV>i set the extent etc from cgi-parameters</DIV>
  <DIV> </DIV>
  <DIV>NAME M6H2_<BR><BR>units kilometers</DIV>
  <DIV>SIZE 800 600</DIV>
  <DIV> </DIV>
  <DIV><BR>SHAPEPATH "c:/PF/AG/apache2/htdocs/ms/data"<BR>FONTSET=20
  "c:/PF/AG/apache2/htdocs/ms/fonts/fonts.list"<BR>SYMBOLSET=20
  "c:/PF/AG/apache2/htdocs/ms/symbols/symbols35.sym"</DIV>
  <DIV> </DIV>
  <DIV>IMAGETYPE swf<BR>IMAGECOLOR 255 169 191</DIV>
  <DIV><BR>WEB<BR>  TEMPLATE s6dev.html<BR>  IMAGEPATH=20
  "c:/PF/AG/apache2/htdocs/tmp/"<BR>  IMAGEURL "/tmp/"<BR>END</DIV>
  <DIV> </DIV>
  <DIV>PROJECTION<BR>  "proj=3Dlatlong"<BR>  =
"ellps=3DWGS84"<BR> =20
  "lat_0=3D0"<BR>  "lon_0=3D0"<BR>END</DIV>
  <DIV>above projection works fine,</DIV>
  <DIV>but not the one below, regardless of zone</DIV>
  <DIV> </DIV>
  <DIV>PROJECTION</DIV>
  <DIV> </DIV>
  =
<DIV>"proj=3Dutm"<BR>"zone=3D30"<BR> "ellps=3DWGS84"<BR>"datum=3DWGS=
84"</DIV>
  <DIV> </DIV>
  <DIV>END</DIV>
  <DIV> </DIV>
  <DIV>this is the layer</DIV>
  <DIV>LAYER <BR>PROJECTION<BR>  "proj=3Dlatlong"<BR> =20
  "ellps=3DWGS84"<BR>  "lat_0=3D0"<BR>  =
"lon_0=3D0"<BR>END<BR>  NAME=20
  baks<BR>  DATA drainage/world_oceans_rectangle<BR>  STATUS=20
  default<BR>  TYPE polygon<BR>  CLASS<BR>    =
NAME=20
  "muts"<BR>    COLOR 151 169 191<BR>  END<BR>END # =
end of=20
  layer object</DIV>
  <DIV> </DIV>
  <DIV>it really is strange, i will check to see if i can get it not to =
draw=20
  using some other projections</DIV>
  <DIV> </DIV>
  <DIV>niklas woermann</DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C3C001.B0284217--



More information about the MapServer-users mailing list