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 |
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
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, within
finalize, getClass, notify, notifyAll, wait, wait, wait
setJTSCoordinate
is3D
cloneGeometry, force2DM, force3D, force3DM
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, 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, within
contains, contains, contains, contains, getBounds, intersects
isEmpty, isEmpty, isEmptyQuietly
protected AbstractPoint(int subtype)
public AbstractPoint(int subtype, com.vividsolutions.jts.geom.Coordinate coordinate)
public DirectPosition getDirectPosition()
Point
of a point
, that is composed by a set of
ordinatesgetDirectPosition
in interface Point
public void setCoordinateAt(int dimension, double value)
Point
setCoordinateAt
in interface Point
dimension
- The dimension to setvalue
- The value to setpublic void setCoordinates(double[] values)
Point
setCoordinates
in interface Point
values
- The coordinates to setpublic void setX(double x)
Point
public void setY(double y)
Point
public double getCoordinateAt(int dimension)
Point
getCoordinateAt
in interface Point
dimension
- The ordinate dimensionpublic double[] getCoordinates()
Point
#setCoordinateAt(int, double))
, #setX(double))
or #setY(double))
methods instead.getCoordinates
in interface Point
public double getX()
Point
public double getY()
Point
public com.vividsolutions.jts.geom.Geometry getJTS()
getJTS
in interface GeometryJTS
public void reProject(ICoordTrans ct)
Geometry
public void transform(java.awt.geom.AffineTransform at)
Geometry
public com.vividsolutions.jts.geom.Coordinate getJTSCoordinate()
getJTSCoordinate
in interface PointJTS
public 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)
Geometry
getPathIterator
in interface java.awt.Shape
getPathIterator
in interface Geometry
at
- The affine transformation.public Handler[] getHandlers(int type)
Geometry
getHandlers
in interface Geometry
getHandlers
in class AbstractPrimitive
type
- Type of handlers.public Envelope getEnvelope()
Geometry
Returns 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 Geometry
getEnvelope
in class AbstractGeometry
public MultiLine toLines() throws GeometryException
Geometry
toLines
in interface Geometry
GeometryException
public MultiPolygon toPolygons() throws GeometryException
Geometry
toPolygons
in interface Geometry
GeometryException
public void flip() throws GeometryOperationNotSupportedException, GeometryOperationException
Geometry
flip
in interface Geometry
GeometryOperationNotSupportedException
GeometryOperationException
public abstract java.lang.String toString()
toString
in class AbstractGeometry
public boolean canBeTransformed(java.awt.geom.AffineTransform at)
Geometry
canBeTransformed
in interface Geometry
at
- the affine transformpublic boolean canBeReprojected(ICoordTrans ct)
Geometry
canBeReprojected
in interface Geometry
ct
- the coordinate transformationpublic int hashCode()
hashCode
in class java.lang.Object
public Point centroid() throws GeometryOperationNotSupportedException, GeometryOperationException
centroid
in interface Geometry
centroid
in class AbstractGeometry
GeometryOperationNotSupportedException
GeometryOperationException
public Point clone() throws java.lang.CloneNotSupportedException
public Point force2D() throws GeometryOperationNotSupportedException, GeometryOperationException
force2D
in interface Geometry
force2D
in interface Point
GeometryOperationNotSupportedException
GeometryOperationException
public Geometry offset(int joinStyle, double distance) throws GeometryOperationNotSupportedException, GeometryOperationException
offset
in interface Geometry
GeometryOperationNotSupportedException
GeometryOperationException
public boolean isEmpty()