Hi All! Frank; Thanks for that tip, now I'm setting the projection on the layer and mapserver is doing my translation into merc which is great. However, the units its projecting it into are meters. If I set, as I have, the units in the layer projection to be m and the units of the map to be dd then i get a "[MapServer Error]: msProcessProjection(): unknown unit conversion id" error.
So I tried to convert my data into a new shapefile so i could re-import it, using the following command: ogr2ogr -s_srs "+proj=latlong" -t_srs "+proj =merc +ellps=WGS84" e:\upload\worldmerc.shp e:\upload\cntry.shp ERROR 1: Failed to find required field in datum.csv in InitDatumMappingTable(), using default table setup. Failed to transform feature 180. ERROR 1: Terminating translation prematurely after failed translation of layer cntry00 Could anyone suggest what my error is? Whether I can fix it in mapserver or the data, either would suffice! The end goal being that I have the data pulled from postgis in the same format as I'm projecting to, so I can do all the relevent trickery there. Many thanks in advance, Neil. On 2/6/06, Frank Warmerdam <[EMAIL PROTECTED]> wrote: > On 2/6/06, Neil Saunders <[EMAIL PROTECTED]> wrote: > > I'd like to set the projection to a mercator WGS84. > > > > All I have is a simple mapfile with the map projection set to : > > PROJECTION > > "proj=merc" > > "ellps=WGS84" > > END > > Neil, > > The above is fine, but by default MapServer will assume your > input layer is the same projection and do nothing with it. > You need to add the following declaration for the LAYER: > > PROJECTION > "+proj=latlong +datum=WGS84" > END > > MapServer does not normally pull the layer coordinate > system from the datasource. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, [EMAIL PROTECTED] > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent >
