Hi, to transform my data from EPSG:31466 to EPSG:900913 with ogr2ogr, I have experienced the same shift. After some search i found this "Add 900913 EPSG code to cubewerks_extra file" (http://trac.osgeo.org/gdal/ticket/1868) and tried this. Now the reprojection returns the right values.
With MapServer WFS I had no problem to retrieve the right values after adding 900913 to the epsg-file, also using ogr as connection to an odbc-db. Arnd Wippermann http://gis.ibbeck.de/ginfo/ Yves Jacolin wrote: > > Le Thursday 06 December 2007 14:58:46 Christopher Schmidt, vous avez > écrit : >> On Thu, Dec 06, 2007 at 02:54:46PM +0100, Jacolin Yves wrote: >> > Hi, >> > >> > One ofmy friend is trying to create a map with a Google layer as >> > baseLayer and he added a GML layer. I converted his shapefile from >> WGS84 >> > to >> > SphericalMercator with ogr then he converted it in GML file. >> > >> > The map is ok except for the GML layer where there is still an >> y-offset. >> > Do you know what we forgot to do? >> >> My first instinct would be to blame your transformation. How did you >> transform it from 4326 to spherical mercator? >> >> Regards, > > Something like this : > > ogr2ogr -f "ESRI Shapefile" -t_srs "+proj=merc +a=6378137 +b=6378137 > +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m [EMAIL PROTECTED] > +no_defs" -s_srs "EPSG:4326" Mono2006_2.shp Mono2006_region.shp > > Am I wrong? > > Y. > -- > Yves Jacolin > --- > http://softlibre.gloobe.org > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Google-and-GML-layer-tp14192810p14326074.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
