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 |
loggerBEST, 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 |
|---|---|
boolean |
canBeReprojected(ICoordTrans ct)
Return true if the geometry can be reprojected by the coordinate transformation
|
boolean |
canBeTransformed(AffineTransform at)
Return true if the geometry can be transformed by the affine transform
|
Point |
centroid() |
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
|
int |
hashCode() |
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, 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, withinclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetJTSCoordinateis3Darea, buffer, 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, withincontains, contains, contains, contains, getBounds, intersectscompareToprotected 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 Pointpublic 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(AffineTransform at)
Geometrypublic com.vividsolutions.jts.geom.Coordinate getJTSCoordinate()
getJTSCoordinate in interface PointJTSpublic Shape getShape(AffineTransform affineTransform)
public Shape getShape()
public PathIterator getPathIterator(AffineTransform at, double flatness)
GeometrygetPathIterator in interface 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 String toString()
toString in class AbstractGeometrypublic boolean canBeTransformed(AffineTransform at)
GeometrycanBeTransformed in interface Geometryat - the affine transformpublic boolean canBeReprojected(ICoordTrans ct)
GeometrycanBeReprojected in interface Geometryct - the coordinate transformationpublic Point centroid() throws GeometryOperationNotSupportedException, GeometryOperationException
centroid in interface Geometrycentroid in class AbstractGeometryGeometryOperationNotSupportedExceptionGeometryOperationException