All JPEG2000 drivers should read georeferencing similarly
|Reported by:||Jukka Rahkonen||Owned by:||warmerdam|
JPEG2000 file can have information about georeferencing stored into several places: internal GeoTIFF box, internal GML box, worldfile, or GDAL specific .aux.xml file. Georeferencing information in different places may be ambiguous and especially .aux.xml file usually exists just because updated or more accurate data could not be stored inside the file itself.
For now all JPEG2000 drivers do not read georeferencing data in a consistent way. For example JP2KAK and JP2ECW drivers use the data from .aux.xml file if it exists while JP2OPENJPEG driver continues to use the data from GeoTIFF box. This means that different JP2 drivers may show different georeferencing for the very same image. For GDAL users this may cause several troubles.