Package com.treasure.hunt.jts.geom
Class GeometryUtility
- java.lang.Object
-
- org.locationtech.jts.geom.Geometry
-
- com.treasure.hunt.jts.geom.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
-
-
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
-
-
-
-
Method Detail
-
getGeometryType
public java.lang.String getGeometryType()
- Specified by:
getGeometryType
in classorg.locationtech.jts.geom.Geometry
-
isSimple
public boolean isSimple()
- Overrides:
isSimple
in classorg.locationtech.jts.geom.Geometry
-
getNumPoints
public int getNumPoints()
- Specified by:
getNumPoints
in classorg.locationtech.jts.geom.Geometry
-
getDimension
public int getDimension()
- Specified by:
getDimension
in classorg.locationtech.jts.geom.Geometry
-
getBoundaryDimension
public int getBoundaryDimension()
- Specified by:
getBoundaryDimension
in classorg.locationtech.jts.geom.Geometry
-
getCoordinate
public org.locationtech.jts.geom.Coordinate getCoordinate(int n)
- Parameters:
n
- the index of theCoordinate
, we want from the coordinate array, stored inthis
.- Returns:
- the
n
-thCoordinate
, stored inthis
.
-
getCoordinate
public org.locationtech.jts.geom.Coordinate getCoordinate()
- Specified by:
getCoordinate
in classorg.locationtech.jts.geom.Geometry
-
getCoordinates
public org.locationtech.jts.geom.Coordinate[] getCoordinates()
- Specified by:
getCoordinates
in classorg.locationtech.jts.geom.Geometry
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in classorg.locationtech.jts.geom.Geometry
-
equalsExact
public boolean equalsExact(org.locationtech.jts.geom.Geometry other, double tolerance)
- Specified by:
equalsExact
in classorg.locationtech.jts.geom.Geometry
-
apply
public void apply(org.locationtech.jts.geom.CoordinateFilter filter)
- Specified by:
apply
in classorg.locationtech.jts.geom.Geometry
-
apply
public void apply(org.locationtech.jts.geom.CoordinateSequenceFilter filter)
- Specified by:
apply
in classorg.locationtech.jts.geom.Geometry
-
apply
public void apply(org.locationtech.jts.geom.GeometryFilter filter)
- Specified by:
apply
in classorg.locationtech.jts.geom.Geometry
-
apply
public void apply(org.locationtech.jts.geom.GeometryComponentFilter filter)
- Specified by:
apply
in classorg.locationtech.jts.geom.Geometry
-
computeEnvelopeInternal
protected org.locationtech.jts.geom.Envelope computeEnvelopeInternal()
- Specified by:
computeEnvelopeInternal
in classorg.locationtech.jts.geom.Geometry
-
compareToSameClass
protected int compareToSameClass(java.lang.Object o)
- Specified by:
compareToSameClass
in classorg.locationtech.jts.geom.Geometry
-
compareToSameClass
protected int compareToSameClass(java.lang.Object o, org.locationtech.jts.geom.CoordinateSequenceComparator comp)
- Specified by:
compareToSameClass
in classorg.locationtech.jts.geom.Geometry
-
normalize
public void normalize()
- Specified by:
normalize
in classorg.locationtech.jts.geom.Geometry
-
-