[gdal-dev] Yet another GML EPSG::4326 offsetvector XY-order problem

Riivo Kolka riivo.kolka at gmail.com
Wed Mar 19 10:51:21 PDT 2025


Hi.

I see that gdaljp2metadata.cpp has lots of code for extracting
something useful but I got files that still escape the effort.

Some Pleiades jp2 images that gdalinfo fails to find the
Origin and Pixel Size and reports wrong Corner Coordinates.
gdalinfo only reports (seemingly correct) GeoTransform

I verified that just the order of    <gml:offsetVector/>s matter.
If i switch the values inside jp2 <gml:offsetVector/> then gdal detects correct
Origin, Pixel Size and correct Corner Coordinates.

GDAL 3.10.2, released 2025/02/11

Full description in a gist
https://gist.github.com/rkolka/70ef4ac1172d6ed98b51d0412ff73d49


More information about the gdal-dev mailing list