public abstract class AbstractVertex extends AbstractPoint implements Vertex
| Modifier and Type | Field and Description |
|---|---|
protected Geometry |
geometry |
NULL_ORDINATE, X, Y, ZM, sortedGeometryTypes| Constructor and Description |
|---|
AbstractVertex(Geometry geometry) |
| Modifier and Type | Method and Description |
|---|---|
AbstractVertex |
clone()
Creates and returns a full copy of this
Point object. |
int |
getAxisCount() |
BoundingBox |
getBoundingBox()
Gets an
BoundingBoxDoubleGf containing
the minimum and maximum x and y values in this Geometry. |
double |
getCoordinate(int axisIndex)
Gets the ordinate value for the given index.
|
<V extends Geometry> |
getGeometry() |
GeometryFactory |
getGeometryFactory()
Gets the geometryFactory which contains the context in which this geometry was created.
|
Vertex |
getLineNext() |
Vertex |
getLinePrevious() |
int |
getPartIndex() |
int |
getRingIndex() |
int |
getSrid()
Returns the ID of the Spatial Reference System used by the
Geometry. |
abstract int[] |
getVertexId() |
int |
getVertexIndex() |
boolean |
isEmpty()
Tests whether the set of points covered by this
Geometry is
empty. |
boolean |
isFrom() |
boolean |
isTo() |
Reader<Vertex> |
reader() |
angle2d, appendVertex, clonePoint, compareTo, compareToSameClass, computeBoundingBox, copy, copyCoordinates, deleteVertex, distance, distance, distance3d, doEquals, equals, equals, equals, equals2d, equalsExact, getBoundary, getBoundaryDimension, getCoordinates, getDataType, getDimension, getM, getPoint, getPointWithin, getSegment, getTime, getToVertex, getVertex, getVertexCount, getX, getY, getZ, hashCode, insertVertex, intersects, isEquivalentClass, isSimple, isValid, move, moveVertex, normalize, prepare, reverse, segments, verticesbuffer, buffer, buffer, checkNotGeometryCollection, compare, contains, containsProperly, convert, convert, convexHull, coveredBy, covers, createVertexId, crosses, difference, disjoint, distance, envelopeCovers, envelopesIntersect, equal, equals, equals, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getCentroid, getClassSortIndex, getCoordinateSystem, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryType, getInteriorPoint, getLength, getNonZeroGeometryFactory, getUserData, getVertexIndex, hasInvalidXyCoordinates, hasNonEmptyElements, hasNullElements, intersection, intersects, isAnyTargetComponentInTest, isGeometryCollection, isRectangle, isWithinDistance, overlaps, relate, relate, setUserData, setVertexIndex, symDifference, toClockwise, toCounterClockwise, toString, touches, toWkt, union, union, withinfinalize, getClass, notify, notifyAll, wait, wait, waitangle2d, clonePoint, compareTo, copyCoordinates, distance, distance, distance3d, equals, equals, equals2d, getCoordinates, getM, getTime, getX, getY, getZ, move, normalize, prepareappendVertex, buffer, buffer, buffer, compareToSameClass, contains, containsProperly, convert, convert, convexHull, copy, coveredBy, covers, crosses, deleteVertex, difference, disjoint, distance, equal, equals, equals, equals, equalsExact, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getBoundary, getBoundaryDimension, getCentroid, getClassSortIndex, getCoordinateSystem, getDimension, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryType, getInteriorPoint, getLength, getPoint, getPointWithin, getSegment, getToVertex, getUserData, getVertex, getVertexCount, hashCode, hasInvalidXyCoordinates, insertVertex, intersection, intersects, intersects, isRectangle, isSimple, isValid, isWithinDistance, moveVertex, overlaps, relate, relate, reverse, segments, setUserData, symDifference, toClockwise, toCounterClockwise, touches, toWkt, union, union, vertices, withingetDataTypeprotected final Geometry geometry
public AbstractVertex(Geometry geometry)
public AbstractVertex clone()
AbstractPointPoint object.
(including all coordinates contained by it).public int getAxisCount()
getAxisCount in interface GeometrygetAxisCount in class AbstractGeometrypublic BoundingBox getBoundingBox()
AbstractGeometryBoundingBoxDoubleGf containing
the minimum and maximum x and y values in this Geometry.
If the geometry is empty, an empty BoundingBoxDoubleGf
is returned.
The returned object is a copy of the one maintained internally, to avoid aliasing issues. For best performance, clients which access this boundingBox frequently should cache the return value.
getBoundingBox in interface GeometrygetBoundingBox in interface VertexgetBoundingBox in class AbstractGeometryGeometry.public double getCoordinate(int axisIndex)
PointPoint.X, Point.Y, and Point.Z.getCoordinate in interface PointaxisIndex - the ordinate indexpublic <V extends Geometry> V getGeometry()
getGeometry in interface Vertexpublic GeometryFactory getGeometryFactory()
GeometrygetGeometryFactory in interface GeometrygetGeometryFactory in interface VertexgetGeometryFactory in class AbstractPointpublic Vertex getLineNext()
getLineNext in interface Vertexpublic Vertex getLinePrevious()
getLinePrevious in interface Vertexpublic int getPartIndex()
getPartIndex in interface Vertexpublic int getRingIndex()
getRingIndex in interface Vertexpublic int getSrid()
AbstractGeometryGeometry.
JTS supports Spatial Reference System information in the simple way
defined in the SFS. A Spatial Reference System ID (SRID) is present in
each Geometry object. Geometry provides basic
accessor operations for this field, but no others. The SRID is represented
as an integer.
public abstract int[] getVertexId()
getVertexId in interface Vertexpublic int getVertexIndex()
getVertexIndex in interface Vertexpublic boolean isEmpty()
AbstractGeometryGeometry is
empty.Copyright © 2015 Revolution Systems Inc.. All rights reserved.