public abstract class AbstractPoint extends AbstractPrimitive implements PointJTS, IsEmpty, Size, GetItem<java.lang.Double>
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus| Modifier and Type | Field and Description |
|---|---|
protected com.vividsolutions.jts.geom.Coordinate |
coordinate |
LOGGERBEST, 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 | Constructor and Description |
|---|---|
protected |
AbstractPoint(int subtype) |
|
AbstractPoint(int subtype,
com.vividsolutions.jts.geom.Coordinate coordinate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeReprojected(ICoordTrans ct)
Return true if the geometry can be reprojected by the coordinate
transformation
|
boolean |
canBeTransformed(java.awt.geom.AffineTransform at)
Return true if the geometry can be transformed by the affine transform
|
Point |
centroid() |
Point |
clone() |
void |
flip()
Flip the coordinates of the geometry.
|
Point |
force2D() |
java.lang.Double |
get(int position) |
double |
getCoordinateAt(int dimension)
Gets the coordinate in a concrete dimension
|
double[] |
getCoordinates()
Returns an array of coordinates.
|
DirectPosition |
getDirectPosition()
Gets the
of a point, that is composed by a set of
ordinates |
Envelope |
getEnvelope()
Returns the minimum bounding box for this Geometry.
|
Handler[] |
getHandlers(int type)
It returns the handlers of the geometry, these they can be of two types
is straightening and of selection.
|
com.vividsolutions.jts.geom.Geometry |
getJTS() |
com.vividsolutions.jts.geom.Coordinate |
getJTSCoordinate() |
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
java.awt.Shape |
getShape() |
java.awt.Shape |
getShape(java.awt.geom.AffineTransform affineTransform) |
double |
getX()
Returns the X coordinate
|
double |
getY()
Returns the Y coordinate
|
int |
hashCode() |
boolean |
isEmpty() |
Geometry |
offset(int joinStyle,
double distance) |
void |
reProject(ICoordTrans ct)
Reprojects this geometry by the coordinate transformer passed as
parameter.
|
void |
setCoordinateAt(int dimension,
double value)
Sets a ordinate in a concrete dimension
|
void |
setCoordinates(double[] values)
Sets the point coordinates
|
void |
setX(double x)
Sets the X coordinate
|
void |
setY(double y)
Sets the Y coordinate
|
int |
size() |
MultiLine |
toLines()
Converts the geometry to be lines and makes with them a multiLine
|
MultiPolygon |
toPolygons()
Converts the geometry to be polygons and makes with them a multiPolygon
|
abstract java.lang.String |
toString() |
void |
transform(java.awt.geom.AffineTransform at)
It applies an affine transformation to the geometry.
|
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, equals, fastIntersects, fix, force2DM, force3D, force3DM, forceSubtype, getBounds, getBounds2D, getGeometryType, 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, withinfinalize, getClass, notify, notifyAll, wait, wait, waitsetJTSCoordinateis3DcloneGeometry, force2DM, force3D, force3DMarea, 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, equals, fastIntersects, fix, forceSubtype, getBounds2D, getDimension, getGeneralPath, getGeometryType, getInteriorPoint, getInternalShape, getPathIterator, getProjection, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, toPoints, touches, union, withincontains, contains, contains, contains, getBounds, intersectsisEmpty, isEmpty, isEmptyQuietlyprotected AbstractPoint(int subtype)
public AbstractPoint(int subtype,
com.vividsolutions.jts.geom.Coordinate coordinate)
public DirectPosition getDirectPosition()
Pointof a point, that is composed by a set of
ordinatesgetDirectPosition in interface Pointpublic void setCoordinateAt(int dimension,
double value)
PointsetCoordinateAt in interface Pointdimension - The dimension to setvalue - The value to setpublic void setCoordinates(double[] values)
PointsetCoordinates in interface Pointvalues - The coordinates to setpublic void setX(double x)
Pointpublic void setY(double y)
Pointpublic double getCoordinateAt(int dimension)
PointgetCoordinateAt in interface Pointdimension - The ordinate dimensionpublic double[] getCoordinates()
Point#setCoordinateAt(int, double))
, #setX(double)) or #setY(double)) methods instead.getCoordinates in interface Pointpublic double getX()
Pointpublic double getY()
Pointpublic com.vividsolutions.jts.geom.Geometry getJTS()
getJTS in interface GeometryJTSpublic void reProject(ICoordTrans ct)
Geometrypublic void transform(java.awt.geom.AffineTransform at)
Geometrypublic com.vividsolutions.jts.geom.Coordinate getJTSCoordinate()
getJTSCoordinate in interface PointJTSpublic java.awt.Shape getShape(java.awt.geom.AffineTransform affineTransform)
public java.awt.Shape getShape()
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
GeometrygetPathIterator in interface java.awt.ShapegetPathIterator in interface Geometryat - The affine transformation.public Handler[] getHandlers(int type)
GeometrygetHandlers in interface GeometrygetHandlers in class AbstractPrimitivetype - Type of handlers.public Envelope getEnvelope()
GeometryReturns the minimum bounding box for this Geometry. This shall be the coordinate region spanning the minimum and maximum value for each ordinate taken on by DirectPositions in this Geometry. The simplest representation for an envelope consists of two DirectPositions, the first one containing all the minimums for each ordinate, and second one containing all the maximums.
getEnvelope in interface GeometrygetEnvelope in class AbstractGeometrypublic MultiLine toLines() throws GeometryException
GeometrytoLines in interface GeometryGeometryExceptionpublic MultiPolygon toPolygons() throws GeometryException
GeometrytoPolygons in interface GeometryGeometryExceptionpublic void flip()
throws GeometryOperationNotSupportedException,
GeometryOperationException
Geometryflip in interface GeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic abstract java.lang.String toString()
toString in class AbstractGeometrypublic boolean canBeTransformed(java.awt.geom.AffineTransform at)
GeometrycanBeTransformed in interface Geometryat - the affine transformpublic boolean canBeReprojected(ICoordTrans ct)
GeometrycanBeReprojected in interface Geometryct - the coordinate transformationpublic int hashCode()
hashCode in class java.lang.Objectpublic Point centroid() throws GeometryOperationNotSupportedException, GeometryOperationException
centroid in interface Geometrycentroid in class AbstractGeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Point clone() throws java.lang.CloneNotSupportedException
public Point force2D() throws GeometryOperationNotSupportedException, GeometryOperationException
force2D in interface Geometryforce2D in interface PointGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Geometry offset(int joinStyle, double distance) throws GeometryOperationNotSupportedException, GeometryOperationException
offset in interface GeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic boolean isEmpty()