Hi,<br><br>Does anyone know if there is a way to automatically generate the proj4 projection keyword values for a layer, needed for the PROJECTION object for that layer in a mapfile. assuming that you have the layer&#39;s data in a file that includes projection metadata?<br>
<br>I&#39;m interested in using MapServer to create WMS services for a bunch of raster layers, and I want to automatically generate the necessary mapfile(s) with a script that scans a directory containing a bunch of raster files, and creates the mapfile with a layer for each raster.   The rasters might be in different projections (probably only a handful of different ones, but I can&#39;t predict them in advance), and I&#39;m at a loss as to how to automatically generate the proj4 values for each layer&#39;s PROJECTION object.  The raster files all have associated projection metadata with them --- I can use gdalinfo to find out the projection&#39;s WKT string, but I haven&#39;t found a way to convert that to the proj4 keyword values that are needed in the mapfile.<br>
<br>I know that I can manually load a raster layer into a desktop program such as QGIS or uDig and use the program&#39;s GUI to find the projection&#39;s proj4 values.  But I need something that can be automated with a script that runs with no GUI and no human interaction.<br>
<br>Alternatively, since I can find a layer&#39;s WKT projection string using gdalinfo, it&#39;d be really convenient if the mapfile PROJECTION object accepted WKT strings, but the mapfile documentation says that the PROJECTION object expects only proj4 keywords.  Is there a way to specify a projection in a mapfile using WKT strings instead?  Or a way to use gdalinfo, or some other command-line tool, to extract a file&#39;s projection as a proj4 string instead of a WKT string?<br>
<br>I&#39;ve searched the docs and mailing list for info on this but haven&#39;t come up with anything; I&#39;d appreciate any tips!<br><br>Thanks,<br><br>--Mark<br><br>