Opened 9 years ago
Closed 9 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 by , 9 years ago
Component: | default → GDAL_Raster |
---|---|
Milestone: | → 2.0 |
Owner: | changed from | to
Priority: | low → normal |
follow-up: 3 comment:2 by , 9 years ago
Milestone: | 2.0 → 1.11.3 |
---|
comment:3 by , 9 years ago
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 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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)"