public interface Point extends Primitive
This interface is equivalent to the GM_Point specified in ISO 19107. It is the basic data type for a geometric object consisting of one and only one point.
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, JOIN_STYLE_BEVEL, JOIN_STYLE_MITRE, JOIN_STYLE_ROUND, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
Modifier and Type | Method and Description |
---|---|
Point |
clone() |
Point |
cloneGeometry()
Creates a clone of this geometry.
|
Point |
force2D() |
Point |
force2DM() |
Point |
force3D() |
Point |
force3DM() |
double |
getCoordinateAt(int dimension)
Gets the coordinate in a concrete dimension
|
double[] |
getCoordinates()
Deprecated.
Use
getCoordinateAt(int) instead |
DirectPosition |
getDirectPosition()
Gets the
of a point , that is composed by a set of
ordinates |
double |
getX()
Returns the X coordinate
|
double |
getY()
Returns the Y coordinate
|
void |
setCoordinateAt(int dimension,
double value)
Sets a ordinate in a concrete dimension
|
void |
setCoordinates(double[] values)
Deprecated.
Use
#setCoordinateAt(int, double)) instead |
void |
setX(double x)
Sets the X coordinate
|
void |
setY(double y)
Sets the Y coordinate
|
area, boundary, buffer, buffer, canBeReprojected, canBeTransformed, centroid, closestPoints, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, fix, flip, forceSubtype, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getProjection, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isEmpty, isSimple, isValid, isWithinDistance, makeValid, move, offset, offset, out, overlaps, perimeter, reProject, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, toLines, toPoints, toPolygons, touches, transform, union, within
DirectPosition getDirectPosition()
of a point
, that is composed by a set of
ordinatesvoid setCoordinateAt(int dimension, double value)
dimension
- The dimension to setvalue
- The value to setvoid setCoordinates(double[] values)
#setCoordinateAt(int, double))
insteadvalues
- The coordinates to setvoid setX(double x)
x
- The value to setvoid setY(double y)
y
- The value to setdouble getCoordinateAt(int dimension)
dimension
- The ordinate dimensiondouble[] getCoordinates()
getCoordinateAt(int)
instead#setCoordinateAt(int, double))
, #setX(double))
or #setY(double))
methods instead.double getX()
double getY()
Point cloneGeometry()
Geometry
cloneGeometry
in interface Geometry
Point clone() throws java.lang.CloneNotSupportedException
Point force2D() throws GeometryOperationNotSupportedException, GeometryOperationException
force2D
in interface Geometry
GeometryOperationNotSupportedException
GeometryOperationException
Point force3D() throws GeometryOperationNotSupportedException, GeometryOperationException
Point force2DM() throws GeometryOperationNotSupportedException, GeometryOperationException
Point force3DM() throws GeometryOperationNotSupportedException, GeometryOperationException