public class CoreTests extends Object
| Constructor and Description |
|---|
CoreTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
containsCRSdeclaredUsingURIs()
[Test] CRS SHALL be identified by URI following the OGC document OGC 11-135
and maintained in http://www.opengis.net/def. |
void |
containsCRSrectifiedGridCoverage()
[Test] The RectifiedGridCoverage model of GMLCOV requires the definition of the CRS associated to each
coverage. |
void |
containsFileExternalReferences()
[Test] The GMLJP2 file processor should follow the assessment rules for schemas as laid out in XML Schema
Specification, Part I Structures, Section 4.3.2. |
void |
containsFileFeatures()
[Test] When there are features related to the JPEG 2000 file that should be included (except the GMLCOV
part and annotations if any), these features shall be encoded in GML 3.2 and shall be included in either in a
child featureElement containing gmljp2:GMLJP2Features (for features common to all codestreams) or from a
gmljp2:feature element of the GMLJP2 elements derived from gmljp2:GMLJP2CoverageType (for features that are
related to a single codestream). |
void |
containsFileInternalReferences()
[Test] When an external application schema is referenced in the xsi:schemaLocation attribute or any
resource is referenced in an xlink:href, it shall be referenced using a http://reference type to an XML instance,
a relative reference shall be interpreted as relative to the jpeg2000 file position. |
void |
containsFileSchemaLocation()
[Test] When XML schema definitions are embedded in a JPEG200 file, then schemaLocation attribute is
mandatory. |
void |
containsGeographicGML32Features()
[Test] Geographic features (if any) included in a JPEG 2000 encoded image using GMLJP2 shall be
encoded as GML 3.2 features. |
void |
containsGmlcovCoverageCollectionContainer()
[Test] A GMLJP2 XML description of an image shall have a gmljp2:GMLJP2CoverageCollection as single root
element derived from gmlcov:AbstractCoverageType thats as a container for other elements. |
void |
containsGmlcovCoverageContainer()
[Test] For each codestream present in the image single child gmljp2:featureMember derived from
gmlcov:AbstractCoverageType (i.e. |
void |
containsGmlCoverageDescriptions()
[Test] A GMLJP2 encoded file conformant to this standard shall use a CIS coverage description
following the OGC 12-108 GML Application Schema - Coverages - JPEG 2000 Coverage Encoding Extension
to describe the coverage collection and to describe the individual coverages. |
void |
containsGmlCoverageMetadataCoherence()
[Test] Coverage metadata in a GMLJP2 XML instance about the internal structure of the JPEG 2000 file
(e.g. |
void |
containsGmlcovInsteadmetaDataProperty()
[Test] gml:metaDataProperty shall neither encode metadata about the coverage collection nor the
individual coverages. |
void |
containsGmlcovMetadata()
[Test] A GMLJP2 XML description of an image shall have a gmljp2:GMLJP2CoverageCollection as single root
element derived from gmlcov:AbstractCoverageType thats as a container for other elements. |
void |
containsGmlcovNilValues()
[Test] In a JPEG2000 encoded file with nil-values, the element tag shall occur in the GMLCOV
(gmlcov:rangeType/swe:DataRecord/swe:field/swe:Quantity/swe:nilValues) with an appropriate swe:nilValue/@reason
to give the client an indication on how to represent them. |
void |
containsGmlcovNilValuesByRef()
[Test] In those cases where the reason is identified by reference to an authority and code, it SHALL be
identified by URI following the OGC document [09-046r2] and maintained in http://www.opengis.net/def (URIs of
Definitions in OGC Namespace). |
void |
containsGmlcovPrecedence()
[Test] gmlcov:metadata information shall be coherent with the corresponding GMLCOV information in
gml:domainSet or gmlcov:rangeType (e.g. |
void |
containsGMLJP2annotation()
[Test] When there are annotations related the JPEG 2000 file that should be included, these annotations
shall be child elements of the gmljp2:annotation element of the of the GMLJP2 elements derived from
gmljp2:GMLJP2CoverageType. |
void |
containsGMLJP2ExternalRefToXMLBox()
[Test] When an external application schema is referenced in the xsi:schemaLocation attribute or any resource
is referenced in an xlink:href, that schema shall be referenced using a http://reference type to an XML instance,
a relative reference shall be interpreted as relative to the JPEG 2000 file position. |
void |
containsGMLJP2fileInternalRef()
[Test] The structure of an internal GMLJP2 URI shall be as follows:
gmljp2://[resource.type]/[resource.id][#fragment-id]
internal-references
Verify that the internal references to schemaLocations are made using gmljp2: references. |
void |
containsGMLJP2fileInternalRefToXMLBox()
[Test] The structure of an internal GMLJP2 URI shall be as follows:
gmljp2://[resource.type]/[resource.id][#fragment-id]
internal-references
Verify that the internal references to schemaLocations are made using gmljp2: references. |
void |
containsGMLJP2fileJp2OtherOuterBox()
[Test] Each of the association boxes, other than the gml.root-instance and gml.data boxes, shall have a
label (the first box shall be a label box in each case). |
void |
containsGMLJP2fileJp2OuterBox()
[Test] The single “outer� association box contains a first box which is a label box. |
void |
containsGMLJP2fileJPXJP2Compatible()
[Test] GMLJP2 will use JPX format specified in JPEG2000 part II Annex M, and shall consequently signal
with the value ‘jpx\040’ in the compatibility list of the File Type box (see Annex M.8 of [ISO 15444-2]. |
void |
containsGMLJP2filenameCodestream()
[Test] The fileName subelement of the rangeSet in the coverage description shall contain a reference to
the corresponding codestream in the JPEG2000 file. |
void |
containsGMLJP2fileStyle()
[Test] When styling information of the features or annotations related the JPEG 2000 file should be
included independent from the features, these styles shall be included in a gmljp2:style element of the coverage
collection or the individual coverages. |
void |
containsGMLJP2fileXMLSignaledCorrectly()
[Test] The use of JPX format extension from JPEG2000 Part 2 (Annex M) shall be signalled with the value
‘jpx\040’ in the brand field of the file type box and the presence of GMLJP2 XML data shall be signalled with
the value 67 in a reader requirement box. |
void |
containsGmlRangeTypeDataRecordUom()
[Test] In a JPEG2000 encoded file with coverage values with units of measure, the element tag must occur
in the GMLCOV (gmlcov:rangeType/swe:DataRecord/swe:uom). |
void |
containsInternalRefToCodestream()
[Test] When an specific application schema (xsi:schemaLocation) or any resource referenced (e.g. |
void |
containsUomByReference()
[Test] In those cases where a UoM is identified by reference to an authority and code, it SHALL be
identified by URI following the OGC document 07-092r3 and maintained in http://www.opengis.net/def (URIs of
Definitions in OGC Namespace). |
void |
containsXMLboxes()
[Test] GMLJP2 instance data shall be stored in XML boxes. |
void |
initFixture(org.testng.ITestContext testContext) |
public void initFixture(org.testng.ITestContext testContext)
public void containsGmlCoverageDescriptions()
[Test] A GMLJP2 encoded file conformant to this standard shall use a CIS coverage description
following the OGC 12-108 GML Application Schema - Coverages - JPEG 2000 Coverage Encoding Extension
to describe the coverage collection and to describe the individual coverages.
Sources
public void containsGmlCoverageMetadataCoherence()
[Test] Coverage metadata in a GMLJP2 XML instance about the internal structure of the JPEG 2000 file
(e.g. number of codestreams, number of rows and columns of a codestream) shall be coherent with the JPEG 2000
binary header information. In case of discrepancies the JPEG 2000 binary headers information takes precedence.
Sources
public void containsGmlcovPrecedence()
[Test] gmlcov:metadata information shall be coherent with the corresponding GMLCOV information in
gml:domainSet or gmlcov:rangeType (e.g. geometric or radiometric information in ISO19139 format).
Sources
public void containsGmlcovInsteadmetaDataProperty()
[Test] gml:metaDataProperty shall neither encode metadata about the coverage collection nor the
individual coverages.
Sources
public void containsGeographicGML32Features()
[Test] Geographic features (if any) included in a JPEG 2000 encoded image using GMLJP2 shall be
encoded as GML 3.2 features.
Sources
public void containsCRSdeclaredUsingURIs()
[Test] CRS SHALL be identified by URI following the OGC document OGC 11-135
and maintained in http://www.opengis.net/def.
Sources
public void containsCRSrectifiedGridCoverage()
[Test] The RectifiedGridCoverage model of GMLCOV requires the definition of the CRS associated to each
coverage.
Sources
public void containsGmlRangeTypeDataRecordUom()
[Test] In a JPEG2000 encoded file with coverage values with units of measure, the element tag must occur
in the GMLCOV (gmlcov:rangeType/swe:DataRecord/swe:uom).
Sources
public void containsUomByReference()
[Test] In those cases where a UoM is identified by reference to an authority and code, it SHALL be
identified by URI following the OGC document 07-092r3 and maintained in http://www.opengis.net/def (URIs of
Definitions in OGC Namespace).
Sources
public void containsGmlcovNilValues()
[Test] In a JPEG2000 encoded file with nil-values, the element tag shall occur in the GMLCOV
(gmlcov:rangeType/swe:DataRecord/swe:field/swe:Quantity/swe:nilValues) with an appropriate swe:nilValue/@reason
to give the client an indication on how to represent them.
Sources
public void containsGmlcovNilValuesByRef()
[Test] In those cases where the reason is identified by reference to an authority and code, it SHALL be
identified by URI following the OGC document [09-046r2] and maintained in http://www.opengis.net/def (URIs of
Definitions in OGC Namespace).
Sources
public void containsGmlcovCoverageCollectionContainer()
[Test] A GMLJP2 XML description of an image shall have a gmljp2:GMLJP2CoverageCollection as single root
element derived from gmlcov:AbstractCoverageType thats as a container for other elements. The sub-elements
gml:domainSet, the gml:rangeSet and the gmlcov:rangeType shall be left as blank as possible because these
sub-elements have no meaning for the collection (but are inherited from the GMLCOV schema); the domainSet should
provide a CRS information (defaulted to WGS84, otherwise the CRS of the single coverage or the common CRS of all
coverages included – if the CRS is homogeneous -), and the bounding box for the collection. Dependency:
/req/gmlcov
Sources
public void containsGmlcovCoverageContainer()
[Test] For each codestream present in the image single child gmljp2:featureMember derived from
gmlcov:AbstractCoverageType (i.e. gmljp2:GMLJP2GridCoverage, gmljp2:GMLJP2RectifiedGridCoverage or
gmljp2:GMLJP2ReferenceableGridCoverage) (composed by a description of the gml:domainSet, the gml:rangeSet and the
gmlcov:rangeType) shall be provided and populated. Dependency: /req/gmlcov
Sources
public void containsGmlcovMetadata()
[Test] A GMLJP2 XML description of an image shall have a gmljp2:GMLJP2CoverageCollection as single root
element derived from gmlcov:AbstractCoverageType thats as a container for other elements. The sub-elements
gml:domainSet, the gml:rangeSet and the gmlcov:rangeType shall be left as blank as possible because these
sub-elements have no meaning for the collection (but are inherited from the GMLCOV schema); the domainSet should
provide a CRS information (defaulted to WGS84, otherwise the CRS of the single coverage or the common CRS of all
coverages included – if the CRS is homogeneous -), and the bounding box for the collection. Dependency:
/req/gmlcov
Sources
public void containsFileFeatures()
[Test] When there are features related to the JPEG 2000 file that should be included (except the GMLCOV
part and annotations if any), these features shall be encoded in GML 3.2 and shall be included in either in a
child featureElement containing gmljp2:GMLJP2Features (for features common to all codestreams) or from a
gmljp2:feature element of the GMLJP2 elements derived from gmljp2:GMLJP2CoverageType (for features that are
related to a single codestream).
Sources
public void containsGMLJP2annotation()
[Test] When there are annotations related the JPEG 2000 file that should be included, these annotations
shall be child elements of the gmljp2:annotation element of the of the GMLJP2 elements derived from
gmljp2:GMLJP2CoverageType.
Sources
public void containsGMLJP2fileStyle()
[Test] When styling information of the features or annotations related the JPEG 2000 file should be
included independent from the features, these styles shall be included in a gmljp2:style element of the coverage
collection or the individual coverages.
Sources
public void containsGMLJP2filenameCodestream()
[Test] The fileName subelement of the rangeSet in the coverage description shall contain a reference to
the corresponding codestream in the JPEG2000 file. The fileStructure subelement shall be “inapplicable�.
Sources
public void containsXMLboxes()
[Test] GMLJP2 instance data shall be stored in XML boxes. In order to allow references between these XML
boxes, each XML box shall be associated with a label inside of an association box. This label serves as an
identifier by which the XML data can be referenced..
Sources
public void containsGMLJP2fileXMLSignaledCorrectly()
[Test] The use of JPX format extension from JPEG2000 Part 2 (Annex M) shall be signalled with the value
‘jpx\040’ in the brand field of the file type box and the presence of GMLJP2 XML data shall be signalled with
the value 67 in a reader requirement box.
Sources
public void containsGMLJP2fileJPXJP2Compatible()
[Test] GMLJP2 will use JPX format specified in JPEG2000 part II Annex M, and shall consequently signal
with the value ‘jpx\040’ in the compatibility list of the File Type box (see Annex M.8 of [ISO 15444-2].
Moreover and except if opacity channels (if any) are specified outside the scope of JP2, GMLJP2 files shall be
written as JP2 compatible by including the string ‘jp2\040’ within the compatibility list of the File Type
box (see Annex I of [ISO 15444-1] and Annex M.2.1 of [ISO 15444-2]).
Sources
public void containsGMLJP2fileJp2OuterBox()
[Test] The single “outer� association box contains a first box which is a label box. This shall
contain the label gml.data. The outer association box shall contain at least one additional association box
containing GML instance data. This association box shall have a first box that is a label box with the label
gml.root-instance and an XML box. This XML box shall only contain GML instance data for the following items and
shall not contain XML schemas, CRS dictionaries or units of measure dictionary instance..
Sources
public void containsGMLJP2fileJp2OtherOuterBox()
[Test] Each of the association boxes, other than the gml.root-instance and gml.data boxes, shall have a
label (the first box shall be a label box in each case). The value of the label is any value allowed by JPEG 2000
Part II.
Sources
public void containsFileSchemaLocation()
[Test] When XML schema definitions are embedded in a JPEG200 file, then schemaLocation attribute is
mandatory.
Sources
public void containsFileExternalReferences()
[Test] The GMLJP2 file processor should follow the assessment rules for schemas as laid out in XML Schema
Specification, Part I Structures, Section 4.3.2.
Sources
public void containsFileInternalReferences()
[Test] When an external application schema is referenced in the xsi:schemaLocation attribute or any
resource is referenced in an xlink:href, it shall be referenced using a http://reference type to an XML instance,
a relative reference shall be interpreted as relative to the jpeg2000 file position.
Sources
public void containsGMLJP2ExternalRefToXMLBox()
[Test] When an external application schema is referenced in the xsi:schemaLocation attribute or any resource
is referenced in an xlink:href, that schema shall be referenced using a http://reference type to an XML instance,
a relative reference shall be interpreted as relative to the JPEG 2000 file position.
Sources
public void containsGMLJP2fileInternalRef()
[Test] The structure of an internal GMLJP2 URI shall be as follows:
gmljp2://[resource.type]/[resource.id][#fragment-id]
Sources
public void containsGMLJP2fileInternalRefToXMLBox()
[Test] The structure of an internal GMLJP2 URI shall be as follows:
gmljp2://[resource.type]/[resource.id][#fragment-id]
Sources
public void containsInternalRefToCodestream()
[Test] When an specific application schema (xsi:schemaLocation) or any resource referenced (e.g.
xlink:href) is included in a different XML Box it shall be referenced using a full reference. The URIs with a
resource.type of xml identify a particular XML data box in the JPEG 2000 file shall have the following form:
gmljp2://xml/[label] or gmljp2://xml/[label][#id].
Sources
Copyright © 2020 Open Geospatial Consortium. All rights reserved.