[Mapserver-users] layer not drawn in utm projection

Debbie Pagurek pagurekd at agr.gc.ca
Thu Dec 11 11:22:39 EST 2003


This is a MIME message. If you are reading this text, you may want to 
consider changing to a mail reader or gateway that understands how to 
properly handle MIME multipart messages.

--=_D38D39C5.1F7E3D90
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I don't have a lot of time to look at this right now,
but my first reactions are that maybe the units should me set to METERS.

Also, you might want to try an epsg code for your utm projection,
instead of setting each parameter.

Debbie

>>> "niklas w=F6rmann" <nwoe at privat.utfors.se> 12/11/03 10:51AM >>>

Hi!
i doubt that the map file has a great deal to do with it,


here it is..

i set the extent etc from cgi-parameters

NAME M6H2_

units kilometers
SIZE 800 600


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"

IMAGETYPE swf
IMAGECOLOR 255 169 191

WEB
  TEMPLATE s6dev.html
  IMAGEPATH "c:/PF/AG/apache2/htdocs/tmp/"
  IMAGEURL "/tmp/"
END

PROJECTION
  "proj=3Dlatlong"
  "ellps=3DWGS84"
  "lat_0=3D0"
  "lon_0=3D0"
END
above projection works fine,
but not the one below, regardless of zone

PROJECTION

"proj=3Dutm"
"zone=3D30"
 "ellps=3DWGS84"
"datum=3DWGS84"

END

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

it really is strange, i will check to see if i can get it not to draw
using some other projections

niklas woermann

--=_D38D39C5.1F7E3D90
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Content-Description: HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 10pt Arial; MARGIN-LEFT: 2px">
<DIV>I don't have a lot of time to look at this right now,</DIV>
<DIV>but my first reactions are that maybe the units should me set to METERS. 
</DIV>
<DIV>Also, you might want to try an epsg code for your utm projection, instead 
of setting each parameter.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Debbie<BR><BR>&gt;&gt;&gt; "niklas wörmann" &lt;nwoe at privat.utfors.se&gt; 
12/11/03 10:51AM &gt;&gt;&gt;<BR></DIV><FONT face=Arial size=2>
<DIV>Hi!</DIV>
<DIV>i doubt that the map file has a great deal to do with it,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>here it is..</DIV>
<DIV>&nbsp;</DIV>
<DIV>i set the extent etc from cgi-parameters</DIV>
<DIV>&nbsp;</DIV>
<DIV>NAME M6H2_<BR><BR>units kilometers</DIV>
<DIV>SIZE 800 600</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>SHAPEPATH "c:/PF/AG/apache2/htdocs/ms/data"<BR>FONTSET 
"c:/PF/AG/apache2/htdocs/ms/fonts/fonts.list"<BR>SYMBOLSET 
"c:/PF/AG/apache2/htdocs/ms/symbols/symbols35.sym"</DIV>
<DIV>&nbsp;</DIV>
<DIV>IMAGETYPE swf<BR>IMAGECOLOR 255 169 191</DIV>
<DIV><BR>WEB<BR>&nbsp; TEMPLATE s6dev.html<BR>&nbsp; IMAGEPATH 
"c:/PF/AG/apache2/htdocs/tmp/"<BR>&nbsp; IMAGEURL "/tmp/"<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>PROJECTION<BR>&nbsp; "proj=latlong"<BR>&nbsp; "ellps=WGS84"<BR>&nbsp; 
"lat_0=0"<BR>&nbsp; "lon_0=0"<BR>END</DIV>
<DIV>above projection works fine,</DIV>
<DIV>but not the one below, regardless of zone</DIV>
<DIV>&nbsp;</DIV>
<DIV>PROJECTION</DIV>
<DIV>&nbsp;</DIV>
<DIV>"proj=utm"<BR>"zone=30"<BR>&nbsp;"ellps=WGS84"<BR>"datum=WGS84"</DIV>
<DIV>&nbsp;</DIV>
<DIV>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>this is the layer</DIV>
<DIV>LAYER <BR>PROJECTION<BR>&nbsp; "proj=latlong"<BR>&nbsp; 
"ellps=WGS84"<BR>&nbsp; "lat_0=0"<BR>&nbsp; "lon_0=0"<BR>END<BR>&nbsp; NAME 
baks<BR>&nbsp; DATA drainage/world_oceans_rectangle<BR>&nbsp; STATUS 
default<BR>&nbsp; TYPE polygon<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; NAME 
"muts"<BR>&nbsp;&nbsp;&nbsp; COLOR 151 169 191<BR>&nbsp; END<BR>END # end of 
layer object</DIV>
<DIV>&nbsp;</DIV>
<DIV>it really is strange, i will check to see if i can get it not to draw using 
some other projections</DIV>
<DIV>&nbsp;</DIV>
<DIV>niklas woermann</DIV></FONT></BODY></HTML>

--=_D38D39C5.1F7E3D90--



More information about the mapserver-users mailing list