[gdal-dev] GDAL (.NET) coordinate transformation via BETA2007
Carsten Lockenkötter
carsten.lockenkoetter at gon.de
Tue Aug 27 22:44:43 PDT 2019
Hi Even,
with GDAL 2.4.2 on a CMD (gdaltransform) it works fine, too.
But not in my application, which is used the GDAL.Native NuGet package.
If it helps, I can write you a small test program.
Or is there another (better) way to transform geometries in SQLServer?
-----Ursprüngliche Nachricht-----
Von: Even Rouault <even.rouault at spatialys.com>
Gesendet: Dienstag, 27. August 2019 17:31
An: gdal-dev at lists.osgeo.org
Cc: Carsten Lockenkötter <carsten.lockenkoetter at gon.de>
Betreff: Re: [gdal-dev] GDAL (.NET) coordinate transformation via BETA2007
> What i need:
> Beta2007 Transformation via EPSG code, but i don't know, where i have
> to change it.
(optional) if i can't change the transformation via EPSG code
> via Gridfile, i need to know the correct proj4 string for my
> transformation.
Works on the box with GDAL 3 + PROJ 6
$ echo "3000000 5500000" | gdaltransform -s_srs EPSG:31466 -t_srs EPSG:3857 -- debug on
OGRCT: Selecting transformation +proj=pipeline +step +proj=axisswap +order=2,1
+step +inv +proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=2500000 +y_0=0
+ellps=bessel +step +proj=hgridshift +grids=BETA2007.gsb +step
++proj=webmerc
+lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 (Inverse of 3-degree
+Gauss-Kruger
zone 2 + DHDN to WGS 84 (4) + Popular Visualisation Pseudo-Mercator)
1435447.09516912 6348270.59693845 0
Even
--
Spatialys - Geospatial professional services http://www.spatialys.com
More information about the gdal-dev
mailing list