<div dir="ltr"><br><br>On Fri, Feb 5, 2021 at 3:40 PM Karsten Tebling <<a href="mailto:tebling@masuch.de">tebling@masuch.de</a>> wrote:<br>><br>> Hello,<br>><br>> i'm struggling with how to use the -ct option in ogr2ogr and could need<br>> some help.<br>><br>> i copied a NTv2.gsb to osgeo4w64/share/proj and edited the proj.db by<br>> inserting a new row in the grid_transformation-table. using this<br>> transformation in qgis works. however when i try to use it in ogr2ogr<br>> with the same data i always get "failed to reproject feature (geometry<br>> probably out of source or destination srs). no known way to write<br>> feature with geometry 'none'". here is my code:<br>><br>> ogr2ogr -s_srs "EPSG:31468" -t_srs "EPSG:25833" -dim XYZ -ct<br>> "+proj=pipeline +step +inv +proj=tmerc +lat_0=0 +lon_0=12 +k=1<br>> +x_0=4500000 +y_0=0 +ellps=bessel +step +proj=hgridshift<br>> +grids=NTv2LSBB_LSA.gsb +step +proj=utm +zone=33 +ellps=GRS80" -f DXF<br>> punkte_25833.dxf punkte_31468.dxf<br>><br><div><br></div><div>Is the grid NTv2LSBB_LSA.gsb used for hgridshift really covering the full extent of punkte_31468.dxf ?</div><div>You can check with "gdalinfo NTv2LSBB_LSA.gsb" and "ogrinfo -so punkte_31468.dxf". </div><div><br></div><div>Markus M<br></div><div><br></div><div>> i'm using the latest qgis-ltr and osgeo4w shell</div>><br>> greetings<br>> _______________________________________________<br>> gdal-dev mailing list<br>> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></div>