30 #ifndef GDAL_JP2READER_H_INCLUDED
31 #define GDAL_JP2READER_H_INCLUDED
61 int SetOffset( GIntBig nNewOffset );
70 GIntBig GetDataLength();
71 const char *GetType() {
return szBoxType; }
77 int DumpReadable( FILE *,
int nIndentLevel = 0 );
79 VSILFILE *GetFILE() {
return fpVSIL; }
81 const GByte *GetUUID() {
return abyUUID; }
84 void SetType(
const char * );
85 void SetWritableData(
int nLength,
const GByte *pabyData );
86 const GByte*GetWritableData() {
return pabyData; }
90 static GDALJP2Box *CreateLblBox(
const char *pszLabel );
91 static GDALJP2Box *CreateLabelledXMLAssoc(
const char *pszLabel,
93 static GDALJP2Box *CreateUUIDBox(
const GByte *pabyUUID,
94 int nDataSize, GByte *pabyData );
106 int GMLSRSLookup(
const char *pszURN );
109 GByte *pabyGeoTIFFData;
115 char **papszGMLMetadata;
117 int bHaveGeoTransform;
118 double adfGeoTransform[6];
125 char **papszMetadata;
126 char *pszXMPMetadata;
132 int ReadBoxes( VSILFILE * fpVSIL );
134 int ParseJP2GeoTIFF();
136 int ParseGMLCoverageDesc();
138 int ReadAndParse(
const char *pszFilename );
141 void SetProjection(
const char *pszWKT );
142 void SetGeoTransform(
double * );
143 void SetGCPs(
int,
const GDAL_GCP * );
146 GDALJP2Box *CreateGMLJP2(
int nXSize,
int nYSize );