public class Point extends Geometry
Constructor and Description |
---|
Point(Point point) |
Point(PointSequence sequence) |
Point(PointSequence sequence,
GeometryOperations geometryOperations) |
Modifier and Type | Method and Description |
---|---|
void |
accept(GeometryVisitor visitor)
Accepts a
GeometryVisitor . |
static Point |
createEmpty() |
Geometry |
getBoundary()
Returns the boundary of this
Geometry . |
int |
getDimension()
Returns the topological dimension of this instance.
|
GeometryType |
getGeometryType()
Returns the type of this
Geometry . |
double |
getM()
Returns the M-coordinate of this
Point . |
PointSequence |
getPoints()
Returns the
PointCollection that is associated with this instance |
double |
getX()
Returns the X-coordinate of this
Point . |
double |
getY()
Returns the Y-coordinate of this
Point . |
double |
getZ()
Returns the Z-coordinate of this
Point . |
boolean |
isSimple()
Tests if this
Geometry is simple; i.e. |
asBinary, asText, buffer, collectPointSets, contains, convexHull, crosses, difference, disjoint, distance, equals, getCoordinateDimension, getCrsId, getCrsId, getDimensionalFlag, getEnvelope, getGeometryOperations, getGeometryOperations, getNumPoints, getPointN, getSRID, hashCode, intersection, intersects, is3D, isEmpty, isMeasured, locateAlong, locateBetween, overlaps, relate, symDifference, toString, touches, union, within
public Point(PointSequence sequence, GeometryOperations geometryOperations)
public Point(PointSequence sequence)
public Point(Point point)
public static Point createEmpty()
public PointSequence getPoints()
Geometry
PointCollection
that is associated with this instancepublic double getX()
Point
.
If this Point
is empty, it returns Double.NaN
.
Point
public double getY()
Point
.
If this Point
is empty, it returns Double.NaN
.
Point
public double getZ()
Point
.
If this Point
is empty, it returns Double.NaN
.
Point
public double getM()
Point
.
If this Point
is empty, it returns Double.NaN
.
Point
public int getDimension()
Geometry
Geometries
.getDimension
in class Geometry
public GeometryType getGeometryType()
Geometry
Geometry
.getGeometryType
in class Geometry
GeometryType
of this instance.public boolean isSimple()
Geometry
Geometry
is simple; i.e. has no anomalous geometric points such as
self-intersections or self-tangency.public Geometry getBoundary()
Geometry
Geometry
.getBoundary
in class Geometry
public void accept(GeometryVisitor visitor)
Geometry
GeometryVisitor
.
If this Geometry
instance is a GeometryCollection
then it will pass the
visitor to its contained Geometries
.
Copyright © 2015 geolatte.org. All rights reserved.