public class Point2D extends AbstractPoint
Modifier and Type | Class and Description |
---|---|
class |
Point2D.PointIterator |
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus
coordinate
LOGGER
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
Constructor and Description |
---|
Point2D() |
Point2D(double x,
double y) |
Point2D(IProjection proj,
Coordinate coordinates) |
Point2D(IProjection proj,
double x,
double y) |
Modifier and Type | Method and Description |
---|---|
Point |
cloneGeometry()
Creates a clone of this geometry.
|
boolean |
equals(java.lang.Object obj) |
Point |
force2DM() |
Point |
force3D() |
Point |
force3DM() |
int |
getDimension()
Returns the largest number n such that each direct position in a
geometric set can be associated with a subset that has the direct
position in its interior and is similar (isomorphic) to Rn, Euclidean
n-space.
|
GeneralPathX |
getGeneralPath()
Get GeneralPathIterator, to do registered operations to it.
|
GeometryType |
getGeometryType()
Instance of the GeometryType associated to this geometry.
|
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
boolean |
is3D() |
Geometry |
offset(double distance) |
void |
setJTSCoordinate(Coordinate coordinate) |
MultiPoint |
toPoints()
Converts the geometry to be points and makes with them a multiPoint
|
java.lang.String |
toString() |
canBeReprojected, canBeTransformed, centroid, clone, flip, force2D, get, getCoordinateAt, getCoordinates, getDirectPosition, getEnvelope, getHandlers, getJTS, getJTSCoordinate, getPathIterator, getShape, getShape, getX, getY, hashCode, isEmpty, offset, reProject, setCoordinateAt, setCoordinates, setX, setY, size, toLines, toPolygons, transform
area, boundary, buffer, buffer, closestPoints, compareTo, contains, contains, contains, contains, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, fix, forceSubtype, getBounds, getBounds2D, getInteriorPoint, getInternalShape, getManager, getProjection, getType, getValidationStatus, intersection, intersects, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, notifyDeprecated, out, overlaps, perimeter, rotate, scale, setGeometryType, setProjection, setProjection, setProjectionIffNull, snapTo, touches, union, within
finalize, getClass, notify, notifyAll, wait, wait, wait
area, boundary, buffer, buffer, 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, fastIntersects, fix, forceSubtype, getBounds2D, getInteriorPoint, getInternalShape, getProjection, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, out, overlaps, perimeter, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, touches, union, within
contains, contains, contains, contains, getBounds, intersects
isEmpty, isEmpty, isEmptyQuietly
public Point2D(IProjection proj, Coordinate coordinates)
proj
- coordinates
- public Point2D()
public Point2D(double x, double y)
x
- y
- public Point2D(IProjection proj, double x, double y)
public Point cloneGeometry()
Geometry
public int getDimension()
Geometry
public GeometryType getGeometryType()
Geometry
getGeometryType
in interface Geometry
getGeometryType
in class AbstractGeometry
public boolean is3D()
public void setJTSCoordinate(Coordinate coordinate)
public GeneralPathX getGeneralPath()
Geometry
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
Geometry
at
- The transformation to apply.public MultiPoint toPoints() throws GeometryException
Geometry
GeometryException
public Geometry offset(double distance) throws GeometryOperationNotSupportedException, GeometryOperationException
distance
- GeometryOperationNotSupportedException
GeometryOperationException
public java.lang.String toString()
toString
in class AbstractPoint
public boolean equals(java.lang.Object obj)
equals
in interface Geometry
equals
in class AbstractGeometry
public Point force3D()
force3D
in interface Point
force3D
in class AbstractGeometry
public Point force2DM()
force2DM
in interface Point
force2DM
in class AbstractGeometry
public Point force3DM()
force3DM
in interface Point
force3DM
in class AbstractGeometry