Class AppearanceModuleValidation
java.lang.Object
org.opengis.cite.citygml30part2.CommonFixture
org.opengis.cite.citygml30part2.module.AppearanceModuleValidation
-
Field Summary
FieldsFields inherited from class org.opengis.cite.citygml30part2.CommonFixture
client, request, response, ROOT_PKG_PATH, testSubject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Using GeoreferencedTexture elements is subject to the following restrictions: A: GeoreferencedTexture element SHALL define the geo-reference either inline using the referencePoint and orientation properties or externally inside the texture image (e.g., by using the GeoTIFF image format) or through an accompanying world file. B: The referencePoint property (type: gml:PointPropertyType) SHALL only contain or reference a 2D point geometry.void
CityGML XML elements implemented by a conforming instance document shall conform to the XML schema in appearance.xsd.void
Assigning texture coordinates to a surface geometry using ParameterizedTexture elements is subject to the following restrictions: A: Texture coordinates given by the textureCoordinates property of the TexCoordList element define an explicit mapping of a surface’s boundary points to points in texture space.void
Surface data SHALL only be applied to surface geometries.Methods inherited from class org.opengis.cite.citygml30part2.CommonFixture
clearMessages, getResponseEntityAsDocument, initCommonFixture, TransformXMLDocumentToXMLString
-
Field Details
-
MODULE_ENABLE
final boolean MODULE_ENABLE- See Also:
-
MODULE_NAME
String MODULE_NAME
-
-
Constructor Details
-
AppearanceModuleValidation
public AppearanceModuleValidation()
-
-
Method Details
-
VerifyAppearanceModule
public void VerifyAppearanceModule()CityGML XML elements implemented by a conforming instance document shall conform to the XML schema in appearance.xsd. -
VerifyAppearanceTarget
Surface data SHALL only be applied to surface geometries. The target property of a surface data element therefore SHALL only reference a subtype of gml:AbstractSurfaceType or a gml:MultiSurface.- Throws:
Exception
-
VerifyAppearanceParameterizedTexture
public void VerifyAppearanceParameterizedTexture()Assigning texture coordinates to a surface geometry using ParameterizedTexture elements is subject to the following restrictions:- A: Texture coordinates given by the textureCoordinates property of the TexCoordList element define an explicit mapping of a surface’s boundary points to points in texture space. A point in texture space SHALL be given as a coordinate pair consisting of two doubles.
- B: The textureCoordinates and ring properties of a TexCoordList element form pairs and their order is decisive. The first textureCoordinates property in the sequence forms a pair with the first ring property in the sequence, the second textureCoordinates property forms a pair with the second ring property, and so on. As a consequence, the number of textureCoordinates and ring properties SHALL be identical.
- C: A TexCoordList element SHALL provide textureCoordinates for all gml:LinearRing elements contained in the surface geometry that is referenced by the target property of the embracing TextureAssociation. This explicitly includes both exterior and interior rings.
- D: The ring property (type: anyURI) SHALL reference the gml:id of the target gml:LinearRing using an appropriate XPointer.
- E: Each point in a ring of a surface geometry SHALL receive a point in texture space. The number of 2D points in the textureCoordinates element therefore SHALL be identical with the number of 3D points in the ring referenced by the corresponding ring property. This explicitly includes texture coordinates for the last point in a gml:LinearRing element which, by GML definition, must be coincident with the first point.
- F: The order of points in the textureCoordinates SHALL follow the order of the points in the referenced ring element as given in the CityGML document regardless of a possibly flipped surface orientation.
-
VerifyAppearanceGeoreferencedtexture
public void VerifyAppearanceGeoreferencedtexture()Using GeoreferencedTexture elements is subject to the following restrictions:- A: GeoreferencedTexture element SHALL define the geo-reference either inline using the referencePoint and orientation properties or externally inside the texture image (e.g., by using the GeoTIFF image format) or through an accompanying world file.
- B: The referencePoint property (type: gml:PointPropertyType) SHALL only contain or reference a 2D point geometry.
-