Hi,
if I use our tools to convert WGS84 / LL ellipsoid height to DHDN / GK4 ellipsoid height, the conversion working great with "de_adv_BETA2007.tif" but de Z is not converted and still on GRS80 ellipsoid...
I have converted my CRS to ".to_3d()" but it's not working.
How can I convert the Z in bessel ellipsoid ?
Thanks in advance for your help.
Exemple
import pyproj
#define CRS
crsIn = pyproj.CRS.from_epsg(4326).to_3d().to_wkt()
crsOut = pyproj.CRS.from_epsg(31468).to_3d().to_wkt()
# greate TransformerGroup to see if grids are present
group = pyproj.transformer.TransformerGroup(crsIn, crsOut, always_xy=True)
group.best_available
>>>True
group.unavailable_operations
>>>[]
#check pipeline with de_adv_BETA2007.tif
group.transformers[0].to_proj4()
>>>+proj=pipeline +step +proj=unitconvert +xy_in=deg +z_in=m +xy_out=rad +z_out=m +step +inv +proj=hgridshift +grids=de_adv_BETA2007.tif +step +proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=bessel
#transform coord
group.transformers[0].transform(10.5352150500, 51.1901083600, 288.8800000000)
>>> 4397703.681687116, 5673812.4399475735, 288.88
#Check with other method
transformer_3d = pyproj.Transformer.from_crs(crsIn, crsOut, always_xy=True)
transformer_3d.transform(10.53521505, 51.19010836, 288.88)
>>> 4397703.6817 5673812.4399 288.88
Problem description
Hi, if I use our tools to convert WGS84 / LL ellipsoid height to DHDN / GK4 ellipsoid height, the conversion working great with "de_adv_BETA2007.tif" but de Z is not converted and still on GRS80 ellipsoid... I have converted my CRS to ".to_3d()" but it's not working.
How can I convert the Z in bessel ellipsoid ?
Thanks in advance for your help.
Exemple
Environment Information