Class ViewTests

java.lang.Object
org.opengis.cite.kml22.BaseFixture
org.opengis.cite.kml22.level1.ViewTests

public class ViewTests extends BaseFixture

Contains test methods that apply to view elements (kml:Camera, kml:LookAt).

Sources

  • Field Summary

    Fields inherited from class org.opengis.cite.kml22.BaseFixture

    NS_MAP, testSubject
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    checkTiltRange(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ViewTests

      public ViewTests()
  • Method Details

    • verifyLookAt

      public void verifyLookAt()
      [Test] Verifies that a kml:LookAt element satisfies all of the following constraints:
      1. if it is not a descendant of kml:Update, it contains all of the following child elements: kml:longitude, kml:latitude, and kml:range;
      2. 0 <= kml:tilt <= 90;
      3. 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

      void checkTiltRange(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.
      Parameters:
      lookAt - A kml:LookAt element.
      errHandler - The error handler that accepts a reported constraint violation.