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 voidapply(org.locationtech.jts.geom.CoordinateFilter filter)voidapply(org.locationtech.jts.geom.CoordinateSequenceFilter filter)voidapply(org.locationtech.jts.geom.GeometryComponentFilter filter)voidapply(org.locationtech.jts.geom.GeometryFilter filter)protected intcompareToSameClass(java.lang.Object o)protected intcompareToSameClass(java.lang.Object o, org.locationtech.jts.geom.CoordinateSequenceComparator comp)protected org.locationtech.jts.geom.EnvelopecomputeEnvelopeInternal()booleanequalsExact(org.locationtech.jts.geom.Geometry other, double tolerance)intgetBoundaryDimension()org.locationtech.jts.geom.CoordinategetCoordinate()org.locationtech.jts.geom.CoordinategetCoordinate(int n)org.locationtech.jts.geom.Coordinate[]getCoordinates()intgetDimension()java.lang.StringgetGeometryType()intgetNumPoints()booleanisEmpty()booleanisSimple()voidnormalize()-
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:
getGeometryTypein classorg.locationtech.jts.geom.Geometry
-
isSimple
public boolean isSimple()
- Overrides:
isSimplein classorg.locationtech.jts.geom.Geometry
-
getNumPoints
public int getNumPoints()
- Specified by:
getNumPointsin classorg.locationtech.jts.geom.Geometry
-
getDimension
public int getDimension()
- Specified by:
getDimensionin classorg.locationtech.jts.geom.Geometry
-
getBoundaryDimension
public int getBoundaryDimension()
- Specified by:
getBoundaryDimensionin 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:
getCoordinatein classorg.locationtech.jts.geom.Geometry
-
getCoordinates
public org.locationtech.jts.geom.Coordinate[] getCoordinates()
- Specified by:
getCoordinatesin classorg.locationtech.jts.geom.Geometry
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin classorg.locationtech.jts.geom.Geometry
-
equalsExact
public boolean equalsExact(org.locationtech.jts.geom.Geometry other, double tolerance)- Specified by:
equalsExactin classorg.locationtech.jts.geom.Geometry
-
apply
public void apply(org.locationtech.jts.geom.CoordinateFilter filter)
- Specified by:
applyin classorg.locationtech.jts.geom.Geometry
-
apply
public void apply(org.locationtech.jts.geom.CoordinateSequenceFilter filter)
- Specified by:
applyin classorg.locationtech.jts.geom.Geometry
-
apply
public void apply(org.locationtech.jts.geom.GeometryFilter filter)
- Specified by:
applyin classorg.locationtech.jts.geom.Geometry
-
apply
public void apply(org.locationtech.jts.geom.GeometryComponentFilter filter)
- Specified by:
applyin classorg.locationtech.jts.geom.Geometry
-
computeEnvelopeInternal
protected org.locationtech.jts.geom.Envelope computeEnvelopeInternal()
- Specified by:
computeEnvelopeInternalin classorg.locationtech.jts.geom.Geometry
-
compareToSameClass
protected int compareToSameClass(java.lang.Object o)
- Specified by:
compareToSameClassin classorg.locationtech.jts.geom.Geometry
-
compareToSameClass
protected int compareToSameClass(java.lang.Object o, org.locationtech.jts.geom.CoordinateSequenceComparator comp)- Specified by:
compareToSameClassin classorg.locationtech.jts.geom.Geometry
-
normalize
public void normalize()
- Specified by:
normalizein classorg.locationtech.jts.geom.Geometry
-
-