Class Topology

java.lang.Object
noaa.coastwatch.util.Topology

public class Topology extends Object
The Topology class contains a number of convenience methods for working with coordinates in a topology.
Since:
3.5.1
Author:
Peter Hollemans
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
    The smallest increment that differentiates two coordinates.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.locationtech.jts.geom.Coordinate
    createCoordinate(double x, double y)
    Creates a coordinate for the specified values that conforms to the precision model returned by getModel().
    static org.locationtech.jts.geom.GeometryFactory
    Gets the factory for topologies that uses the precision model given by getModel().
    static org.locationtech.jts.geom.PrecisionModel
    Gets the precision model for topologies.

    Methods inherited from class java.lang.Object

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

    • EPSILON

      public static final double EPSILON
      The smallest increment that differentiates two coordinates.
      See Also:
  • Constructor Details

    • Topology

      public Topology()
  • Method Details

    • getModel

      public static org.locationtech.jts.geom.PrecisionModel getModel()
      Gets the precision model for topologies. The model has a precision for locations given by the EPSILON value.
      Returns:
      the precision model.
    • getFactory

      public static org.locationtech.jts.geom.GeometryFactory getFactory()
      Gets the factory for topologies that uses the precision model given by getModel().
      Returns:
      the factory for creating topology objects.
    • createCoordinate

      public static org.locationtech.jts.geom.Coordinate createCoordinate(double x, double y)
      Creates a coordinate for the specified values that conforms to the precision model returned by getModel().
      Parameters:
      x - the coordinate x value.
      y - the coordinate y value.
      Returns:
      the coordinate with values rounded to the precision model accuracy.