|Constructor and Description|
Use GeometryFactory instead
|Modifier and Type||Method and Description|
Returns true if the two
Gets the boundary of this geometry.
Returns the dimension of this
Returns the dimension of this geometry.
Returns the name of this Geometry's actual class.
Tests whether this
apply, apply, apply, apply, clone, getArea, getCoordinate, getCoordinates, getGeometryN, getLength, getNumGeometries, getNumPoints, isEmpty, normalize, reverse
buffer, buffer, buffer, compareTo, compareTo, contains, convexHull, copy, coveredBy, covers, crosses, difference, disjoint, distance, equals, equals, equalsExact, equalsNorm, equalsTopo, geometryChanged, getCentroid, getEnvelope, getEnvelopeInternal, getFactory, getInteriorPoint, getPrecisionModel, getSRID, getUserData, hashCode, intersection, intersects, isRectangle, isSimple, isWithinDistance, norm, overlaps, relate, relate, setSRID, setUserData, symDifference, toString, toText, touches, union, union, within
public MultiPoint(Point points, PrecisionModel precisionModel, int SRID)
Points for this
nullor an empty array to create the empty geometry. Elements may be empty
Points, but not
precisionModel- the specification of the grid of allowable points for this
SRID- the ID of the Spatial Reference System used by this
public int getDimension()
Note that this is a different concept to the dimension of
The geometry dimension can never be greater than the coordinate dimension.
For example, a 0-dimensional geometry (e.g. a Point)
may have a coordinate dimension of 3 (X,Y,Z).
public int getBoundaryDimension()
Geometrys inherent boundary.
public String getGeometryType()
public Geometry getBoundary()
public boolean isValid()
Geometryis topologically valid, according to the OGC SFS specification.
For validity rules see the Javadoc for the specific Geometry subclass.
public boolean equalsExact(Geometry other, double tolerance)
Geometrys are exactly equal, up to a specified distance tolerance. Two Geometries are exactly equal within a distance tolerance if and only if:
SRID, or the
To properly test equality between different geometries,
it is usually necessary to
Geometry.normalize() them first.
Geometrywith which to compare this
tolerance- distance at or below which two
Coordinates are considered equal
trueif this and the other
Geometryhave identical structure and point values, up to the distance tolerance.
Copyright © 2020. All rights reserved.