[mapserver-users] Projection Woes - How to do it (i.e. i really need some help)
Brent Fraser
bfraser at geoanalytic.com
Thu May 9 10:14:09 PDT 2002
Chip,
Check the spelling in the projection section of your layer definition:
"elips=clrk66"
should be
"ellps=clrk66"
(I did the same thing just yesterday...)
Brent
----- Original Message -----
From: "Hankley, Chip" <Chip.Hankley at GASAI.Com>
To: "MapServer List (E-mail)" <mapserver-users at lists.gis.umn.edu>
Sent: Thursday, May 09, 2002 10:54 AM
Subject: [mapserver-users] Projection Woes - How to do it (i.e. i really
need some help)
> Fiddling with projection-on-the-fly today. Working w/ the 3.5 CGI versions
> of MapServer, on Win2K, with IIS. When I try to load a mapfile with a
> projection specified, I get the following error (map file below):
>
> msProcessProjection(): Projection library error. major axis or radius = 0
or
> not given
>
> I'm totally confused by what's in (or not in) the documentation.
>
> 1) Do I need to have some local file (like a library) defining projections
> somewhere? Where does it go? Do I need to do something different if using
> MapScript?
>
> 2) What extent do I define in my header: the extent of the map projection,
> or the extent of my layer.
>
> 3) Why am I getting this error?
>
> TIA!
>
> Chip
>
>
>
> NAME library
> EXTENT 280482.067224 206170.386312 778816.444758 746364.850613SIZE 400 400
> FONTSET "C:\Inetpub\wwwroot\mapserv\ms_symbols\fonts\fonts.list"
> SHAPEPATH "C:\ESRI\ESRIDATA\USA\"
> SYMBOLSET "C:\Inetpub\wwwroot\MapSymbols\symbol.sym"
> UNITS meters
> IMAGECOLOR 255 255 255
>
> #
> # Projection definition
> #
> PROJECTION
> "proj=utm"
> "ellps=GRS80"
> "zone=15"
> "north"
> "no_defs"
> END
>
>
> WEB
> TEMPLATE default.html
> IMAGEPATH "C:\Inetpub\wwwroot\tmp\"
> IMAGEURL "/tmp/"
> END
>
> SCALEBAR
> STATUS ON
> INTERVALS 2
> SIZE 125 2
> COLOR 0 0 0
> BACKGROUNDCOLOR 255 255 255
> OUTLINECOLOR 0 0 0
> UNITS feet
> LABEL
> COLOR 0 0 0
> SIZE small
> END
> END
>
> LAYER
> NAME Counties
> TYPE Polygon
> STATUS on
> PROJECTION
> "proj=latlong"
> "elips=clrk66"
> END
> DATA "Counties"
> CLASS
> Name 'Ctyppoly.shp'
> OUTLINECOLOR 0 0 0
> END # CLASS
> END # LAYER
>
> END
>
>
>
>
>
>
More information about the MapServer-users
mailing list