[gdal-dev] Re: What to do if JPEG2000 GML metadata is wrong?

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Mon Jan 30 05:13:34 EST 2012


Jukka Rahkonen <jukka.rahkonen <at> mmmtike.fi> writes:
> Hi,
> 
> I received an JPEG2000 image which contains wrong georeferencing as 
embedded
> GML. I know that origin in this
> <gml:origin>
>    <gml:Point gml:id="P0001" srsName="urn:ogc:def:crs:EPSG::3067">
>      <gml:pos>320000.0000000000000 6953999.5000000000000</gml:pos>
>    </gml:Point>
> </gml:origin>
> should actually be 320000.250 6953999.750
> 
> Does GDAL offer any means for correcting the metadata? Are there other open
> source tools for this purpose?

Andrew Brooks suggested to use a binary/hex editor and it worked perfectly
for me in this case. Metadata is correct and the image itself remained 
readable.

GDAL has five different JPEG2000 drivers. Do they have any common 
georeferencing metadata format which they all could read and write, 
and also have a common interpretation about how it is done correctly?
By a quick look it seems that not all of them can write GeoJP2
nor OGC-GML and perhaps not even world files.

-Jukka Rahkonen-



More information about the gdal-dev mailing list