[gdal-dev] GML box in .JP2 image

Piero Campalani piero.campa at gmail.com
Mon Mar 17 03:45:18 PDT 2014


That's just great.

All working as expected here.
Thanks Even for your quick replies.

Piero


On 16 March 2014 20:08, Even Rouault <even.rouault at mines-paris.org> wrote:

> Le dimanche 16 mars 2014 19:23:18, Piero Campalani a écrit :
> > Hi list,
> >
> > I am using GDAL 1.10 + JP2OpenJPEG driver to encode .JP2 files including
> a
> > GML metadata box.
> > http://www.gdal.org/frmt_jp2openjpeg.html
> >
> > I used it successfully to gdal_translate a JP2 from a GeoTIFF image, but
> > then: what are the read/write options for the user with regards to the
> GML
> > box?
>
> As far as writing is concerned, the GMLJP2 creation option controls whether
> the GML box should be written or not. It defaults to YES, as documented.
>
> >
> > Can gdalinfo extract the GML information and display it?
>
> Yes, this is done automaticaly when trying to get the SRS and
> geotransformation matrix.
>
> With GDAL trunk (not 1.10), you can the GML fragment with the "-mdd all"
> option of gdalinfo.
>
> > When creating a JP2 image, can I specify my own GML fragment?
>
> Yes, you must define the GMLJP2OVERRIDE configuration option to be the
> name of a
> file that contains the GML fragment. This is admitedly an undocumented
> feature.
>
> e.g :
> gdal_translate my.tif my.jp2 -of JP2OpenJPEG --config GMLJP2OVERRIDE my.gml
>
>
> >
> > Best,
> > Piero
>
> --
> Geospatial professional services
> http://even.rouault.free.fr/services.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140317/2dc99f4d/attachment.html>


More information about the gdal-dev mailing list