[mapserver-users] Re: Mapserver Projection Errors

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Wed Oct 19 14:26:55 EDT 2011


Hi,

I suppose that this one 
PROJECTION
        "+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs"
END 

means the same as

PROJECTION
  "init=epsg:4326"
END 

with these definitions 
# WGS 84
<4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs  <>

 but perhaps also the +proj thing should work without sending new rows into the error log..  This far I have never needed proj.4 stirings with Mapserver myself but I am working with very limited set or projections.

-Jukka Rahkonen-

________________________________________
Lähettäjä: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k&#228;ytt&#228;j&#228;n SixDegrees [paulcarlisle at comcast.net] puolesta
Lähetetty: 19. lokakuuta 2011 20:58
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] Re: Mapserver Projection Errors

The layer projections are in Proj.4 format, as indicated above. The map-level
projection is simply "epsg:4326", as is the map-level wms_srs as already
noted. The epsg:4326 definition in /usr/share/proj/epsg is:

# WGS 84
<4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs  <>

which looks OK to me.

Again, the XML returned by GetCapabilities shows that the bounding box for
each layers is being calculated according to the layer projection in cases
where they differ from epsg:4326, and the maps themselves display OK,
without generating any errors.

For the most part, the files in question do not contain EPSG codes we can
insert directly into the layer projection block. In a couple of cases they
do, and when we put, say, "epsg:32638" in the projection block, the
resulting image looks exactly the same as it does when the Proj.4 string is
use, but it doesn't throw the error when GetCapabilities is called.


--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-Projection-Errors-tp6908527p6909764.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list