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, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
Modifier and Type | Method and Description |
---|---|
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, buffer, canBeReprojected, canBeTransformed, centroid, cloneGeometry, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, flip, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, reProject, rotate, scale, snapTo, toLines, toPoints, toPolygons, touches, transform, union, within
contains, contains, contains, contains, getBounds, intersects
compareTo
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))
insteadvalue
- 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()