[gdal-dev] tps - gdalwarp vs ogr2ogr

Stijn Tallir stijn+gdal-dev at strict.be
Wed Aug 16 02:28:29 PDT 2023


No, didn't use that option.
The raster image results are correct though. The results are exactly what I
would expect from a tps. The vector results don't exactly match the gcp
"to"-points as you would expect.
Tried the different order transformations to see if the tps was somehow
ignored but these gave different results.

Op wo 16 aug 2023 om 11:14 schreef Andrew C Aitchison <
andrew at aitchison.me.uk>:

> On Wed, 16 Aug 2023, Stijn Tallir wrote:
>
> > Hi,
> >
> > According to the documentation gdal and ogr use the same algorithm for
> the
> > tps-transformation but I don't seem to get the same results using the
> same
> > set of gcp's for images and vectors.
> >
> > I have images that are unreferenced and vector data digitised on these
> > images (in pixel coordinates).
> >
> > The images are then georeferenced with +100 gcp's and warped with
> gdalwarp
> > using the "tps" option.
> >
> > When I use the same gcp's (with adjusted y-origin to lower left corner)
> to
> > georeference the vector data with ogr2ogr and the "tps" option I get
> > different results. The vector-result is similar to the image-result but
> > never exactly the same and differences can be substantial.
>
> Is AREA_OR_POINT set ?
>
> --
> Andrew C. Aitchison                      Kendal, UK
>                     andrew at aitchison.me.uk
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230816/01c26d8f/attachment-0001.htm>


More information about the gdal-dev mailing list