Package org.opengis.cite.kml22.level1
Class ViewTests
java.lang.Object
org.opengis.cite.kml22.BaseFixture
org.opengis.cite.kml22.level1.ViewTests
Contains test methods that apply to view elements (kml:Camera, kml:LookAt).
Sources
- OGC 07-134r2: OGC KML 2.2 - Abstract Test Suite
- KML Reference - Camera
- KML Reference - LookAt
-
Field Summary
Fields inherited from class org.opengis.cite.kml22.BaseFixture
NS_MAP, testSubject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidcheckTiltRange(Element lookAt, org.opengis.cite.validation.ValidationErrorHandler errHandler) An error is reported if the value of the kml:tilt element (of type kml:anglepos180Type) is outside the valid range 0-90.void[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.Methods inherited from class org.opengis.cite.kml22.BaseFixture
obtainTestSubject, setTestSubject, verifyElementNotEmpty
-
Constructor Details
-
ViewTests
public ViewTests()
-
-
Method Details
-
verifyLookAt
public void verifyLookAt()[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.
- See Also:
-
- "OGC 07-134r2, ATC 38: LookAt"
-
checkTiltRange
An error is reported if the value of the kml:tilt element (of type kml:anglepos180Type) is outside the valid range 0-90.- Parameters:
lookAt- A kml:LookAt element.errHandler- The error handler that accepts a reported constraint violation.
-