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-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Sumit Sharma Sent: Friday, June 11, 2010 9:10 AM To: mapserver-users@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users