[gdal-dev] JPEG file with ESRI world file .jpgw but geotransform not established

Markus Neteler neteler at osgeo.org
Tue Jan 28 04:56:30 PST 2020


Hi Even,

On Tue, Jan 28, 2020 at 12:33 PM Even Rouault
<even.rouault at spatialys.com> wrote:
....
> I've just added in GDAL master support for extracting the GCPs from the ESRI
> GeodataXform object of .aux.xml files
>
> $ gdalinfo txu-pclmaps-oclc-6540922-tunis-20.jpg
> [...]
> GCP Projection =
> PROJCRS["NW Africa Grid",
> [...]
> Data axis to CRS axis mapping: 1,2
> GCP[  0]: Id=, Info=
>           (381.276620627847,524.9132323456) -> (1881000,858000,0)
> GCP[  1]: Id=, Info=
>           (4748.87345734052,3173.95623746933) -> (1912000,840000,0)
> GCP[  2]: Id=, Info=
>           (4781.59200262719,475.147738026018) -> (1912000,859000,0)
> GCP[  3]: Id=, Info=
>           (353.683965895426,3227.29350218835) -> (1881000,839000,0)
> [...]
>
> And confirmed that
>
> gdalwarp txu-pclmaps-oclc-6540922-tunis-20.jpg out.tif -overwrite
>
> produces a geotransform consistent with the one of the .jgwx file.

How cool, thanks!

Do you see a chance to push
https://github.com/OSGeo/gdal/commit/66ea9bfa6e0e4ba27b0ae8ce7c75f3d5ad11da63

also to the 2.x branch?

Markus


More information about the gdal-dev mailing list