[MAPSERVER-USERS] cs2cs problems

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Mon Mar 17 10:45:16 EDT 2008


Hi,

I you want to define projections in mapfile then there are two alternatives:
either give the espg code:

PROJECTION
          "init=epsg:2393" 
END

or proj4 strings:

PROJECTION 
"+proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000
+y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37
+units=m +no_defs"
END

But perhaps you are aiming at something else by using cs2cs?

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: mapserver-users-bounces at lists.osgeo.org puolesta: cfb
Lähetetty: ma 17.3.2008 15:49
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [MAPSERVER-USERS] cs2cs problems
 

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!!

-- 
View this message in context: http://www.nabble.com/cs2cs-problems-tp16092875p16092875.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