Opened 7 years ago

Closed 7 years ago

#5707 closed defect (fixed)

GMLJP2 does not pass schema validation.

Reported by: pacesm Owned by: Even Rouault
Priority: normal Milestone: 1.11.3
Component: GDAL_Raster Version: unspecified
Severity: minor Keywords:
Cc:

Description

The GMLJP2 generated by GDAL does not pass the schema validation.

When validating the XML extracted from a JP2 image against the annotated schema the xmllint complains that:

test.gmljp2:33: element fileName: Schemas validity error : Element '{http://www.opengis.net/gml}fileName':
 This element is not expected. Expected is ( {http://www.opengis.net/gml}rangeParameters ).
test.gmljp2 fails to validate

The reason is apparently the missing required gml:rangeParameters element in the gml:File element. Adding an empty gml:rangeParameters element right before the gml:fileName makes the GMLJP2 pass the schema validation successfully.

See: http://trac.osgeo.org/gdal/browser/trunk/gdal/gcore/gdaljp2metadata.cpp (line 1208)

Change History (4)

comment:1 Changed 7 years ago by Even Rouault

Component: defaultGDAL_Raster
Milestone: 2.0
Owner: changed from warmerdam to Even Rouault
Priority: lownormal

comment:2 Changed 7 years ago by Even Rouault

Milestone: 2.01.11.3

pacesm, out of curiosity. how did you find this issue ? Does a software reject non validating GMLJP2 boxes ?

trunk r28553, branches/1.11 r28554 "GMLJP2: add missing rangeParameters element to validate against GMLJP2 schema (#5707)"

comment:3 in reply to:  2 Changed 7 years ago by pacesm

Replying to rouault:

pacesm, out of curiosity. how did you find this issue ? Does a software reject non validating GMLJP2 boxes ?

It was not me who found the issue but our customer during the acceptance review of the delivered SW package. He had the idea to pass the content of the GMLJP2 box of a produced JP2k image trough an XML validator. I am not aware of any SW rejecting the image because of this issue. The severity of this issue is probably negligible.

comment:4 Changed 7 years ago by Even Rouault

Resolution: fixed
Status: newclosed

trunk r28556 "Validate GMLJP2 produced by GDAL against schema (#5707)"

Note: See TracTickets for help on using tickets.