Hi Carla,
mapserver searches in the (epsg) file for the epsg code for projection parameters. So I think IF your epsg file contains both a line with 23030 AND 4230 (mine does by default), everything should go ok if you just make your initial projection something like:

PROJECTION
  "init=epsg:23030"
END

And add your extra needed projection to the wms_srs line in you WEB-object:

WEB
    ...
    "wms_srs" "epsg:23030 epsg:4230"
    ...
END

Why should you use cs2cs parameters (which is actualy a wrapper around proj isn't it?) in you mapserver file? Mapserver is smart enough to lookup the proj parameters from your epsg file, and uses proj itself to reproject your data.

Hope this helps,

Richard Duivenvoorde

cfb wrote:
Hi,

I’m having problems with the projection again. I’ve got a shape in
epsg:23030 (ED50 UTM 30N), but I want to set my service in epsg:4230
(ETRS89). I’ve changed the extent, the "wms_boundingbox" and the
"wms_latlonboundingbox" of my header’s mapfile to geographic coordinates
(epsg:4230 for ED50), and in the projection object (always in the header, in
the layer object I leave epsg:23030) I put:

PROJECTION
   'cs2cs +from +init=epsg:4230 +to +proj=4258 +no_defs +no_defs +no_defs
+no_defs +ellps=GRS80 +datum=ETRS89 +no_defs +units=m' END http://www.nabble.com/file/p16092875/epsg epsg
For the second reference system, I’ve also tried with “+proj=longlat” and
with “+init=epsg:4258”, but I get always the same error:
msProcessProjection(): Projection library error. projection not named

The epsg file of my proj4 is attached (ms4w v. 2.2.7, MapServer 5.0.2)

Thanks in advance!!


_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to