public abstract class AbstractPoint extends AbstractPrimitive implements PointJTS
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, 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 |
---|---|
void |
flip()
Flip the coordinates of the geometry.
|
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() |
PathIterator |
getPathIterator(AffineTransform at,
double flatness)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
Shape |
getShape() |
Shape |
getShape(AffineTransform affineTransform) |
double |
getX()
Returns the X coordinate
|
double |
getY()
Returns the Y coordinate
|
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
|
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 String |
toString() |
void |
transform(AffineTransform at)
It applies an affine transformation to the geometry.
|
area, buffer, centroid, closestPoints, compareTo, contains, contains, contains, contains, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, getBounds, getBounds2D, getGeometryType, getInteriorPoint, getInternalShape, getManager, getType, getValidationStatus, intersection, intersects, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, notifyDeprecated, out, overlaps, perimeter, rotate, scale, snapTo, touches, union, within
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setJTSCoordinate
is3D
area, buffer, centroid, cloneGeometry, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, getBounds2D, getDimension, getGeneralPath, getGeometryType, getInteriorPoint, getInternalShape, getPathIterator, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, rotate, scale, snapTo, toPoints, touches, union, within
contains, contains, contains, contains, getBounds, intersects
compareTo
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
public 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(AffineTransform at)
Geometry
public com.vividsolutions.jts.geom.Coordinate getJTSCoordinate()
getJTSCoordinate
in interface PointJTS
public Shape getShape(AffineTransform affineTransform)
public Shape getShape()
public PathIterator getPathIterator(AffineTransform at, double flatness)
Geometry
getPathIterator
in interface 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 String toString()
toString
in class AbstractGeometry