[mapserver-users] Re: automatically generate a layer's PROJECTION object for a mapfile?

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Fri Jun 11 07:20:36 PDT 2010


You could also use Python or the other languages supported by gdal.  

In Python, here is a little bit of code to show the function.

>>> spatialReference = layer.GetSpatialRef()
>>> spatialReference.ExportToProj4()

David.

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sumit Sharma
Sent: Friday, June 11, 2010 9:10 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Re: automatically generate a layer's PROJECTION object for a mapfile?


you would like to use OGR/OSR for this purpose. If you are using .NET you can
use swig wrappers. SpatialReference object can be used to create proj4
string from wkt. 
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/automatically-generate-a-layer-s-PROJECTION-object-for-a-mapfile-tp5167979p5168060.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