[gdal-dev] Re: Adding GMLJP2 metadata into existing JPEG2000 file

Even Rouault even.rouault at mines-paris.org
Fri Apr 13 15:04:14 EDT 2012


Le vendredi 13 avril 2012 15:30:44, Jukka Rahkonen a écrit :
> Even Rouault <even.rouault <at> mines-paris.org> writes:
> > Jukka,
> > 
> > Your question made me look more closely at the capabilities of the JP2Box
> > support in GDAL, and I discovered that I had to write just a few lines of
> > code to add support for writing georeferencing in the existing openjpeg
> > driver. See http://trac.osgeo.org/gdal/changeset/24220#file2 . Basically
> > you just need to write the boxes at the end of the existing file.
> 
> I checked with Kakadu kdu_show and J2K-codec JP Metadata Editor that the
> GML boxes look good. However, there is probably something wrong with the
> GeoJP2 UUID box. 

Actually, there was a problem in the length written in the box header. After 
fixing it, it works fine, even when located after the codestream.

> It might be good to correct also into
> trunk/gdal/frmts/openjpeg/frmt_jp2openjpeg.html  that the GeoJP2 box is
> really UUID box and not GML box.

That was actually a copy&paste of the doc of the jp2ecw driver. Also fixed now. 
Thanks

> 
> -Jukka Rahkonen-
> 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list