true for the
given XML source.http).Test] Checks for the occurrence of deprecated elements.<Model>) from DOM sources to JTS Geometry objects.Test] Verifies that a kml:Schema element has an 'id' attribute
value.Test] Verifies that a kml:coordinates or kml:Model/kml:Location
element includes an altitude value if its sibling kml:altitudeMode
element does NOT have the value "clampToGround".Test] Verifies that a kml:GroundOverlay feature with an
kml:altitudeMode value of "absolute" includes a kml:altitude element.Test] Verifies that that an atom:author element satisfies all of
the following constraints:
the content of the atom:uri element is an IRI reference;
the content of the atom:email element conforms to the "addr-spec"
production in RFC 2822.Test] Verifies that the value of the atom:link/@rel attribute is
"related".Test] Verifies that if a kml:BalloonStyle element is not a
descendant of kml:Update, it is not empty.Test] Verifies that a kml:Camera element satisfies all of the
following constraints:
if it is not a descendant of kml:Update, then the following child
elements are present: kml:latitude, kml:longitude, and kml:altitude;
the value of kml:altitudeMode is not "clampToGround".Test] Verify that the root element of the document has [local
name] = "kml" and [namespace name] = "http://www.opengis.net/kml/2.2".Test] Verifies that a KML object that is not a descendant of
kml:Update is either (a) not empty, or (b) empty but has an 'id'
attribute value (so it can be easily updated).Test] Verifies that a kml:ExtendedData element is not empty.Test] Verifies that if a kml:Folder element is not a descendant
of kml:Update, it is not empty.Test] Verify that a kml:coordinates element contains a list of
2D or 3D tuples (separated by white space) that contain comma-separated
decimal values (lon,lat[,hgt]).Test] Verifies that if the kml:extrude element has the value
"true", then the value of kml:altitudeMode is not
"clampToGround".Test] Verifies that if the kml:tessellate element has the value
"true", then the value of kml:altitudeMode is "clampToGround" (default
value).Test] Verifies that if a kml:GroundOverlay element is not a
descendant of kml:Update, it contains a kml:LatLonBox element (with
kml:north, kml:south, kml:east, kml:west).Test] Verifies that a kml:httpQuery element (appearing within a
parent link element) contains at least one supported parameter (these are
listed below).Test] Verifies that the kml:Icon/kml:href element refers to an
image resource.Test] Verifies that if a kml:IconStyle element is not a
descendant of kml:Update, it is not empty.Test] Verifies that if a kml:ImagePyramid element is not a
descendant of kml:Update, it satisfies all of the following constraints:
it has the kml:maxWidth and kml:maxHeight child elements;
the kml:tileSize value is a power of 2.Test] Verifies that if a kml:PhotoOverlay element includes a
kml:Icon/kml:href element containing [x], [y], and [level] parameters (to
accommodate large images), then it also includes a child kml:ImagePyramid
element.Test] Verifies that if a kml:ItemIcon element (with parent
kml:ListStyle) is not a descendant of kml:Update, then it has a kml:href
child element (that specifies the location of the image used in the list
view).Test] Verifies that the document element (kml:kml) contains at
least one child element: kml:NetworkLinkControl or any element that
substitutes for kml:AbstractFeatureType.Test] Verifies that if a kml:LabelStyle element is not a
descendant of kml:Update, it has at least one of the following child
elements: kml:color, kml:colorMode, or kml:scale.Test] Verifies that the content of a kml:LatLonAltBox element
satisfies all of the following constraints:
kml:north > kml:south;
kml:east > kml:west;
kml:minAltitude <= kml:maxAltitude;
if kml:minAltitude and kml:maxAltitude are both present, then
kml:altitudeMode does not have the value "clampToGround".Test] Verifies that the content of a kml:LatLonBox element
satisfies all of the following constraints:
it contains the kml:north, kml:south, kml:east, and kml:west
elements;
kml:north > kml:south;
kml:east > kml:west.Test] Verifies that a kml:LinearRing element (composing the
boundary of a polygon) does not contain any of the following elements:
kml:extrude, kml:tessellate, or kml:altitudeMode.Test] Verifies that the kml:coordinates element in a
kml:LinearRing geometry contains at least 4 coordinate tuples and that
the first and last are identical (i.e. they constitute a closed figure).Test] Verifies that the kml:coordinates element in a
kml:LineString geometry contains at least two coordinate tuples.Test] Verifies that if a kml:Link or a kml:Icon element is not a
descendant of kml:Update, then it contains a kml:href child element.Test] Verifies that a link element refers to the correct
resource type, according to one of the following cases:
Test] Verifies that a kml:Link or a kml:Icon element (both of
type kml:LinkType) satisfies all of the following constraints:
if the kml:refreshInterval element is present, the kml:refreshMode
value must be "onInterval";
if the kml:viewRefreshTime element is present, the
kml:viewRefreshMode value must be "onStop".Test] Verifies that a link element (of type kml:LinkType)
satisfies the following constraint: if present, the child
kml:refreshInterval element has a positive value (> 0).Test] Verifies that a link element (of type kml:LinkType)
satisfies the following constraint: if present, the child
kml:viewBoundScale element has a positive value (> 0).Test] Verifies that a link element (of type kml:LinkType)
satisfies the following constraint: if present, the child
kml:viewRefreshTime element has a positive value (> 0).Test] Verifies that if a kml:ListStyle element is not a
descendant of kml:Update, it contains at least one of the following child
elements: kml:listItemType, kml:bgColor, or kml:ItemIcon.Test] Verifies that a kml:LookAt element satisfies all of the
following constraints:
if it is not a descendant of kml:Update, it contains all of the
following child elements: kml:longitude, kml:latitude, and kml:range;
0 <= kml:tilt <= 90;
if kml:altitudeMode does not have the value "clampToGround", then the
kml:altitude element is present.Test] Verifies that the content of a kml:Model element satisfies
all of the following constraints:
it contains the kml:Link and kml:Location elements;
if it is not a descendant of kml:Update and the target resource
refers to any texture files, then there must be a
kml:ResourceMap/kml:Alias for each related texture file.Test] Verifies that a kml:Location element satisfies all of the
following constraints:
it contains the kml:longitude and kml:latitude elements;
if the parent kml:Model element has a kml:altitudeMode value that is
not "clampToGround", then the kml:altitude element is also present.Test] Verifies that if a kml:Orientation element is not a
descendant of kml:Update, then it contains at least one of the following
KML elements: kml:heading, kml:tilt, or kml:roll.Test] Verifies that if a kml:MultiGeometry element is not a
descendant of kml:Update, it contains two or more geometry elements.Test] Verifies that the
kml:NetworkLinkControl/kml:minRefreshPeriod element has a non-negative
value (>=0).Test] Verifies that if any element that substitutes for
kml:AbstractOverlayType (kml:PhotoOverlay, kml:GroundOverlay,
kml:ScreenOverlay) is not a descendant of kml:Update, then it contains a
kml:Icon child element.Test] Verifies that the value of the kml:phoneNumber element is
a 'tel' URI that conforms to RFC 3966.Test] Verifies that if a kml:PhotoOverlay element is not a
descendant of kml:Update, then it includes all of the following child
elements: kml:Icon, kml:ViewVolume, kml:Point, and kml:Camera.Test] Verifies that if a kml:Placemark element is not a
descendant of kml:Update, it includes a geometry element (any element
that substitutes for kml:AbstractGeometryGroup).Test] Verifies that the kml:coordinates element in a kml:Point
geometry contains exactly one coordinate tuple.Test] Verifies that the boundary of a kml:Polygon element
satisfies all of the following constraints.Test] Verifies that if a kml:PolyStyle element is not a
descendant of kml:Update, it contains at least one of the following
elements: kml:color, kml:colorMode, kml:fill, or kml:outline.Test] Verifies that if a kml:Region element is not a descendant
of kml:Update, it contains the kml:LatLonAltBox and kml:Lod elements.Test] Verifies that a kml:Lod element (with parent kml:Region)
satisfies all of the following constraints:
if it is not a descendant of kml:Update, it contains the
kml:minLodPixels element;
kml:minLodPixels < kml:maxLodPixels (where a value of -1 denotes
positive infinity).Test] Verifies that a kml:ResourceMap element contains at least
one kml:Alias child element, and that each Alias element has a unique
kml:sourceHref value.Test] Verifies that if a kml:Scale element is not a descendant
of kml:Update, it contains at least one of the following elements: kml:x,
kml:y, or kml:z.Test] Verifies that a kml:SchemaData element satisfies all of
the following constraints:
the 'schemaUrl' attribute value is a URL with a fragment component
that refers to a kml:Schema element;
all kml:SimpleData child elements have a 'name' attribute that
matches the name of a declared kml:SimpleField element in the
corresponding Schema;
the values of all kml:SimpleData child elements conform to their
declared types.Test] Verifies that if a kml:ScreenOverlay element is not a
descendant of kml:Update, then it has a kml:screenXY child element.Test] Verifies that if a style element (any element that may
substitute for kml:AbstractStyleSelectorGroup) has a parent
kml:Document it is a 'shared' style.Test] Verifies that a kml:SimpleField element satisfies all of
the following constraints:
it has a 'name' attribute;
the value of the 'type' attribute is one of the following XML Schema
data types:
xsd:string
xsd:int
xsd:unsignedInt
xsd:short
xsd:unsignedShort
xsd:float
xsd:double
xsd:boolean
Test] Verifies that if a kml:StyleMap/kml:Pair element is not a
descendant of kml:Update, then it contains (a) a kml:key element, and (b)
at least one of kml:styleURL element or any element that substitutes for
kml:AbstractStyleSelectorGroup (kml:Style, kml:StyleMap).Test] Verifies that if a kml:StyleMap element is not a
descendant of kml:Update, it contains two kml:Pair elements where one key
value is "normal" and the other key value is "highlight".Test] Verifies that if a kml:Style element is not a descendant
of kml:Update, it is not empty.Test] Verifies that a kml:styleUrl element satisfies all of the
following constraints:
its value is a valid relative or absolute URL that refers to a shared
style definition (any element that substitutes for
kml:AbstractStyleSelectorGroup);
if the reference is an absolute URI, the value conforms to the 'http'
or 'file' URI schemes;
it includes a fragment identifier conforming to the shorthand pointer
syntax as defined in the W3C XPointer framework.Test] Verifies that a kml:Alias element (that renames texture
file paths found within a source COLLADA file) referenced in a kml:Model)
satisfies the following constraints:
the value of the child kml:targetHref element is a URI that refers to
an image (texture) resource;
the value of the child kml:sourceHref element corresponds to a file
reference appearing within the 3D object resource referenced in the
preceding sibling kml:Link element.Test] Verifies that a TimeSpan element satisfies all of the
following constraints:
it includes at least one child element (kml:begin or kml:end);
if it is a definite interval (both kml:begin and kml:end are
present), then the begin value is earlier than the end value.Test] Verifies that a kml:TimeStamp element has a child kml:when
element.Test] Verifies that a kml:Data element has both a 'name'
attribute and a kml:value child element.Test] Verifies that the value of the 'name' attribute on a
kml:Data element is unique within the context of the parent
kml:ExtendedData element.Test] Verifies that the value of the kml:Update/kml:targetHref
element satisfies all of the following constraints:
it is an absolute URL that refers to a KML or KMZ resource;
the target resource contains the data to be updated.Test] Verifies that a kml:viewFormat element (appearing within a
parent link element) contains at least one parameter.Test] Verifies that a kml:ViewVolume element (in
kml:GroundOverlay) includes at least the following child elements:
kml:leftFov, kml:rightFov, kml:bottomFov, kml:topFov, and kml:near
(non-negative value).Test] Verifies that the document satisfies all KML 2.2 schema
constraints.Copyright © 2021 Open Geospatial Consortium. All rights reserved.