Class SpatialAssert

java.lang.Object
org.opengis.cite.geomatics.SpatialAssert

public class SpatialAssert extends Object
Provides specialized assertion methods that apply to representations of spatial objects. Many of these are concerned with evaluating topological relationships between geometry objects.
See Also:
  • "ISO 19125-1: Geographic information -- Simple feature access -- Part 1: Common architecture"
  • Constructor Details

    • SpatialAssert

      public SpatialAssert()
  • Method Details

    • assertIntersects

      public static void assertIntersects(Envelope env1, Envelope env2)
      Asserts that the given envelopes intersect. The coordinate reference systems used by the envelopes do not have to be the same; a coordinate transformation will be attempted if necessary. More specifically, this method asserts that the envelopes are not disjoint.
       
       a.Intersects(b) <--> ! a.Disjoint(b)
       
       
      Parameters:
      env1 - An Envelope representing a spatial extent.
      env2 - An Envelope object representing some other spatial extent.