[gdal-dev] ogr2ogr -tps with more than 1000 control points

Even Rouault even.rouault at spatialys.com
Fri Aug 9 08:59:56 PDT 2019


On vendredi 9 août 2019 13:31:57 CEST Jan Hartmann wrote:
> Hi all,
> 
> I'm converting large historical vector maps with ogr2ogr, using -gcp and
> -tps to rubbersheet the polygons with control points. Works fine up to
> about a thousand control points, each in the form of "-gcp fromx fromy
> tox toy". After that, the converted map becomes erratic. Is this a bug?

Two hypothesis:
- the extra GCP you're adding are wrong
- there's numerical instability in the matrix computations with the extra GCP. 
If your GDAL build doesn't use libarmadillo, then consider rebuilding against 
it, as it might improve numeric stability.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list