Class GeometryUtility

  • All Implemented Interfaces:
    Shapeable, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

    public abstract class GeometryUtility
    extends org.locationtech.jts.geom.Geometry
    implements Shapeable
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.locationtech.jts.geom.Geometry

        envelope, factory, SRID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(org.locationtech.jts.geom.CoordinateFilter filter)
      void apply​(org.locationtech.jts.geom.CoordinateSequenceFilter filter)
      void apply​(org.locationtech.jts.geom.GeometryComponentFilter filter)
      void apply​(org.locationtech.jts.geom.GeometryFilter filter)
      protected int compareToSameClass​(java.lang.Object o)
      protected int compareToSameClass​(java.lang.Object o, org.locationtech.jts.geom.CoordinateSequenceComparator comp)  
      protected org.locationtech.jts.geom.Envelope computeEnvelopeInternal()
      boolean equalsExact​(org.locationtech.jts.geom.Geometry other, double tolerance)
      int getBoundaryDimension()
      org.locationtech.jts.geom.Coordinate getCoordinate()
      org.locationtech.jts.geom.Coordinate getCoordinate​(int n)  
      org.locationtech.jts.geom.Coordinate[] getCoordinates()
      int getDimension()
      java.lang.String getGeometryType()
      int getNumPoints()
      boolean isEmpty()
      boolean isSimple()
      void normalize()
      • Methods inherited from class org.locationtech.jts.geom.Geometry

        buffer, buffer, buffer, checkNotGeometryCollection, clone, compare, compareTo, compareTo, contains, convexHull, copy, copyInternal, coveredBy, covers, crosses, difference, disjoint, distance, equal, equals, equals, equalsExact, equalsNorm, equalsTopo, geometryChanged, geometryChangedAction, getArea, getBoundary, getCentroid, getEnvelope, getEnvelopeInternal, getFactory, getGeometryN, getInteriorPoint, getLength, getNumGeometries, getPrecisionModel, getSortIndex, getSRID, getUserData, hashCode, hasNonEmptyElements, hasNullElements, intersection, intersects, isEquivalentClass, isGeometryCollection, isRectangle, isValid, isWithinDistance, norm, overlaps, relate, relate, reverse, setSRID, setUserData, symDifference, toString, toText, touches, union, union, within
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getGeometryType

        public java.lang.String getGeometryType()
        Specified by:
        getGeometryType in class org.locationtech.jts.geom.Geometry
      • isSimple

        public boolean isSimple()
        Overrides:
        isSimple in class org.locationtech.jts.geom.Geometry
      • getNumPoints

        public int getNumPoints()
        Specified by:
        getNumPoints in class org.locationtech.jts.geom.Geometry
      • getDimension

        public int getDimension()
        Specified by:
        getDimension in class org.locationtech.jts.geom.Geometry
      • getBoundaryDimension

        public int getBoundaryDimension()
        Specified by:
        getBoundaryDimension in class org.locationtech.jts.geom.Geometry
      • getCoordinate

        public org.locationtech.jts.geom.Coordinate getCoordinate​(int n)
        Parameters:
        n - the index of the Coordinate, we want from the coordinate array, stored in this.
        Returns:
        the n-th Coordinate, stored in this.
      • getCoordinate

        public org.locationtech.jts.geom.Coordinate getCoordinate()
        Specified by:
        getCoordinate in class org.locationtech.jts.geom.Geometry
      • getCoordinates

        public org.locationtech.jts.geom.Coordinate[] getCoordinates()
        Specified by:
        getCoordinates in class org.locationtech.jts.geom.Geometry
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in class org.locationtech.jts.geom.Geometry
      • equalsExact

        public boolean equalsExact​(org.locationtech.jts.geom.Geometry other,
                                   double tolerance)
        Specified by:
        equalsExact in class org.locationtech.jts.geom.Geometry
      • apply

        public void apply​(org.locationtech.jts.geom.CoordinateFilter filter)
        Specified by:
        apply in class org.locationtech.jts.geom.Geometry
      • apply

        public void apply​(org.locationtech.jts.geom.CoordinateSequenceFilter filter)
        Specified by:
        apply in class org.locationtech.jts.geom.Geometry
      • apply

        public void apply​(org.locationtech.jts.geom.GeometryFilter filter)
        Specified by:
        apply in class org.locationtech.jts.geom.Geometry
      • apply

        public void apply​(org.locationtech.jts.geom.GeometryComponentFilter filter)
        Specified by:
        apply in class org.locationtech.jts.geom.Geometry
      • computeEnvelopeInternal

        protected org.locationtech.jts.geom.Envelope computeEnvelopeInternal()
        Specified by:
        computeEnvelopeInternal in class org.locationtech.jts.geom.Geometry
      • compareToSameClass

        protected int compareToSameClass​(java.lang.Object o)
        Specified by:
        compareToSameClass in class org.locationtech.jts.geom.Geometry
      • compareToSameClass

        protected int compareToSameClass​(java.lang.Object o,
                                         org.locationtech.jts.geom.CoordinateSequenceComparator comp)
        Specified by:
        compareToSameClass in class org.locationtech.jts.geom.Geometry
      • normalize

        public void normalize()
        Specified by:
        normalize in class org.locationtech.jts.geom.Geometry