public abstract class AbstractSegment extends AbstractLineSegment implements Segment
| Constructor and Description |
|---|
AbstractSegment(Geometry geometry) |
| Modifier and Type | Method and Description |
|---|---|
AbstractSegment |
clone()
Creates and returns a full copy of this
LineString object. |
int |
getAxisCount() |
double[] |
getCoordinates() |
<V extends Geometry> |
getGeometry() |
GeometryFactory |
getGeometryFactory()
Gets the geometryFactory which contains the context in which this geometry was created.
|
int |
getPartIndex() |
int |
getRingIndex() |
int |
getSegmentIndex() |
int |
getSrid()
Returns the ID of the Spatial Reference System used by the
Geometry. |
boolean |
isEmpty()
Tests whether the set of points covered by this
Geometry is
empty. |
Reader<Segment> |
reader() |
angle, closestPoint, closestPoints, compareTo, compareTo, convert, createLineSegment, createPoint, distance, distance, distance, distanceAlong, distanceAlong, distancePerpendicular, equals, equals, equalsTopo, extend, getElevation, getIntersection, getIntersection, getLength, getP0, getP1, getVertexCount, intersection, intersects, isEndPoint, isHorizontal, isPerpendicularTo, isPointOnLineMiddle, isVertical, isWithinDistance, isZeroLength, lineIntersection, midPoint, normalize, orientationIndex, orientationIndex, pointAlong, pointAlongOffset, project, project, projectCoordinate, projectionFactor, projectionFactor, reverse, segmentFraction, touchesEndappendVertex, compareToSameClass, computeBoundingBox, convertCoordinates, copy, deleteVertex, deleteVertex, distance, doEquals, equals, equalsExact, equalsVertex, equalsVertex, equalsVertex, equalsVertex, equalsVertex, getBoundary, getBoundaryDimension, getCoordinatesList, getDataType, getDimension, getEndPoint, getM, getMinVertexCount, getPoint, getPoint, getPointWithin, getSegment, getSegmentCount, getStartPoint, getToVertex, getVertex, getX, getY, getZ, hasVertex, insertVertex, intersects, isClockwise, isClosed, isCounterClockwise, isEquivalentClass, isRing, merge, merge, move, moveCoordinates, moveVertex, moveVertex, orientationIndex, points, prepare, segments, split, subLine, subLine, subLine, subLine, toClockwise, toCounterClockwise, verticesbuffer, buffer, buffer, checkNotGeometryCollection, compare, contains, containsProperly, convert, convexHull, coveredBy, covers, createVertexId, crosses, difference, disjoint, distance, envelopeCovers, envelopesIntersect, equal, equals, equals, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getBoundingBox, getCentroid, getClassSortIndex, getCoordinateSystem, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryType, getInteriorPoint, getNonZeroGeometryFactory, getUserData, getVertexIndex, hashCode, hasInvalidXyCoordinates, hasNonEmptyElements, hasNullElements, intersection, intersects, isAnyTargetComponentInTest, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, overlaps, relate, relate, setUserData, setVertexIndex, symDifference, toString, touches, toWkt, union, union, withinfinalize, getClass, notify, notifyAll, wait, wait, waitgetGeometryVertex, getSegmentId, isLineClosed, isLineEnd, isLineStart, setSegmentIdangle, closestPoint, closestPoints, distance, distance, distance, distanceAlong, distanceAlong, distancePerpendicular, equals, equalsTopo, getBoundingBox, getCoordinate, getElevation, getIntersection, getIntersection, getP0, getP1, intersection, intersects, isEndPoint, isHorizontal, isPerpendicularTo, isPointOnLineMiddle, isVertical, isZeroLength, lineIntersection, midPoint, normalize, orientationIndex, orientationIndex, pointAlong, pointAlongOffset, project, project, projectCoordinate, projectionFactor, projectionFactor, reverse, segmentFraction, touchesEnddistance, equals, equalsVertex, equalsVertex, equalsVertex, equalsVertex, equalsVertex, getCoordinatesList, getEndPoint, getM, getPoint, getSegmentCount, getStartPoint, getX, getY, getZ, hasVertex, isClockwise, isClosed, isCounterClockwise, isRing, merge, merge, move, moveVertex, points, prepare, split, subLine, subLine, subLine, subLineappendVertex, buffer, buffer, buffer, compareTo, 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, segments, setUserData, symDifference, toClockwise, toCounterClockwise, touches, toWkt, union, union, vertices, withingetDataTypeprotected final Geometry geometry
public AbstractSegment(Geometry geometry)
public AbstractSegment clone()
AbstractLineStringLineString object.
(including all coordinates contained by it).clone in interface Geometryclone in interface LineStringclone in interface Segmentclone in class AbstractLineSegmentpublic int getAxisCount()
getAxisCount in interface GeometrygetAxisCount in interface LineSegmentgetAxisCount in class AbstractLineSegmentpublic double[] getCoordinates()
getCoordinates in interface LineStringgetCoordinates in class AbstractLineStringpublic <V extends Geometry> V getGeometry()
getGeometry in interface Segmentpublic GeometryFactory getGeometryFactory()
GeometrygetGeometryFactory in interface GeometrygetGeometryFactory in interface LineSegmentgetGeometryFactory in class AbstractGeometrypublic int getPartIndex()
getPartIndex in interface Segmentpublic int getRingIndex()
getRingIndex in interface Segmentpublic int getSegmentIndex()
getSegmentIndex in interface Segmentpublic 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 boolean isEmpty()
AbstractGeometryGeometry is
empty.Copyright © 2015 Revolution Systems Inc.. All rights reserved.