[gdal-dev] Re: ogr2ogr BeTA2007 grid

Iván Sánchez Ortega ivan at sanchezortega.es
Wed Apr 14 05:06:58 EDT 2010

El 14/04/2010 10:31, Tilo Villwock escribió:
>> ogr2ogr -s_srs "+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +y_0=0
>> +ellps=bessel +nadgrids=BETA2007.gsb" -t_srs EPSG:25832 target.shp
>> source.shp
> I used the parameters instead, but it didn't work either. In fact, I
> think it doesn't matter since ogr2ogr looks up the same parameters in
> its EPSG file and converts the whole string to WKT anyway.

No  -  the -s_srs option overrides any spatial reference information in 
the original data (be it a .prj file, a worldfile, or embedded in the 

Maybe you can try writing down a couple of coordinates from the 
shapefile, and running cs2cs (entering the coordinates by hand) to see 
if it makes a difference.

Try something like:

cs2cs +proj=tmerc +lat_0=0 +lon_0=9 +k=1 +y_0=0 +ellps=bessel 
+nadgrids=BETA2007.gsb +to +init=epsg:25832


cs2cs +proj=tmerc +lat_0=0 +lon_0=9 +k=1 +y_0=0 +ellps=bessel +to 

Again, run it in the same directory as the nadgrid file, and use the 
full epsg:3396 definition.

Hope it helps,
Iván Sánchez Ortega <ivan at sanchezortega.es>

More information about the gdal-dev mailing list