[Mapserver-users] mapserver 4.0b projection error

Frank Warmerdam warmerdam at pobox.com
Wed Jun 18 07:46:29 PDT 2003


Aaron D. Hunt wrote:
> When I run a projection like
>  
>    PROJECTION
>      "init=epsg:26918" #NAD83 UTM zone 18N
>    END
>  
> I get an error  "Wed Jun 18 10:24:22 2003 - msProcessProjection(): 
> Projection library error. no system list, errno: 2"

Aaron,

This generally means that MapServer can't find your epsg coordinate
system file.  Try setting the PROJ_LIB environment variable to point
to the directory holding the "epsg" file.

> or
>  
> PROJECTION
>  "proj=latlong"
> END
>  
> Wed Jun 18 10:33:53 2003 - msProcessProjection(): Projection library 
> error. major axis or radius = 0 or not given
>  
> I have it compiled with proj. Is there something new with 4.0

You need to provide an explicit definiation of the ellipsoid for a valid
latlong coordinate system.  Add "ellps=WGS84" for instance giving you:

  PROJECTION
   "proj=latlong"
   "ellps=WGS84"
  END

Good luck,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the MapServer-users mailing list