[gdal-dev] +proj=etmerc in ogr2ogr

Simon Lyngby Kokkendorff silyko at gmail.com
Mon Oct 8 05:50:04 PDT 2012


Hi List,

  For some transformations of data in Greenland we need the extended
precision of the etmerc (Extended Transverse Mercator) projection, which is
built into proj4.8. I have succesfully built the proj4.8 library and have
gotten a definition like, e.g.: +proj=etmerc +lat_0=0 +lon_0=9 +k=0.9996
+units=m +x_0=500000 +datum=WGS84 +nodefs to work in cs2cs. I am also able
to get gdal1.9 to succesfully load my proj.dll and start up (programs like
gdalinfo, ogrinfo etc.)

However, if I try to run ogr2ogr like:

 ogr2ogr -s_srs "EPSG:25832" -t_srs "+proj=etmerc +lat_0=0 +lon_0=9
+k=0.9996
 +units=m +x_0=500000 +datum=WGS84 +nodefs" C:\DHM\analysis\bakke2.shp
C:\DHM\analysis\shape\
bakke.shp

I get the following error:

Failed to process SRS definition: +proj=etmerc +lat_0=0 +lon_0=9 +k=0.9996
+unit
s=m +x_0=500000 +datum=WGS84 +nodefs

It works fine if I change +proj=etmerc to +proj=tmerc. Seems to me, that
somehow +proj=etmerc is not build into the "metadata system" of gdal/ogr,
so that it is not translatable to e.g. a ESRI-wkt definition. Might this be
that case, and if so, what should I update in order to get this to work?

Cheers,
Simon Kokkendorff,
National Survey and Cadastre of Denmark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121008/f6882acd/attachment.html>


More information about the gdal-dev mailing list