[Mapserver-users] layer not drawn in utm projection

Debbie Pagurek pagurekd at agr.gc.ca
Thu Dec 11 08:22:39 PST 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> </DIV>
<DIV>Debbie<BR><BR>>>> "niklas wörmann" <nwoe at privat.utfors.se> 
12/11/03 10:51AM >>><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> </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 
"c:/PF/AG/apache2/htdocs/ms/fonts/fonts.list"<BR>SYMBOLSET 
"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 
"c:/PF/AG/apache2/htdocs/tmp/"<BR>  IMAGEURL "/tmp/"<BR>END</DIV>
<DIV> </DIV>
<DIV>PROJECTION<BR>  "proj=latlong"<BR>  "ellps=WGS84"<BR>  
"lat_0=0"<BR>  "lon_0=0"<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=utm"<BR>"zone=30"<BR> "ellps=WGS84"<BR>"datum=WGS84"</DIV>
<DIV> </DIV>
<DIV>END</DIV>
<DIV> </DIV>
<DIV>this is the layer</DIV>
<DIV>LAYER <BR>PROJECTION<BR>  "proj=latlong"<BR>  
"ellps=WGS84"<BR>  "lat_0=0"<BR>  "lon_0=0"<BR>END<BR>  NAME 
baks<BR>  DATA drainage/world_oceans_rectangle<BR>  STATUS 
default<BR>  TYPE polygon<BR>  CLASS<BR>    NAME 
"muts"<BR>    COLOR 151 169 191<BR>  END<BR>END # end of 
layer object</DIV>
<DIV> </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> </DIV>
<DIV>niklas woermann</DIV></FONT></BODY></HTML>

--=_D38D39C5.1F7E3D90--



More information about the MapServer-users mailing list