public class Line2D extends BaseLine2D implements Line
AbstractLine.LineIterator, AbstractLine.VertexIterator
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus
coordinates, 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
Constructor and Description |
---|
Line2D() |
Line2D(ArrayListCoordinateSequence coordinates) |
Line2D(Coordinate[] coordinates) |
Modifier and Type | Method and Description |
---|---|
Line |
clone() |
Line |
cloneGeometry()
Creates a clone of this geometry.
|
Geometry |
force2D() |
Geometry |
offset(double distance) |
Geometry |
offset(int joinStyle,
double distance) |
addVertex, addVertex, fixPoint, getVertex, toLines, toPoints, toPolygons
addMoveToVertex, addVertex, canBeReprojected, canBeTransformed, cloneCoordinates, closePrimitive, ensureCapacity, extractPoint, flip, force2DM, force3D, force3DM, forceClose, get, getCoordinateAt, getDimension, getGeneralPath, getJTS, getNumVertices, getPathIterator, getPathIterator, getPathLength, getShape, getShape, insertVertex, is3D, isClosed, isClosed, isEmpty, iterator, removeVertex, reProject, setCoordinateAt, setGeneralPath, setPoints, setVertex, size, transform
getHandlers
area, boundary, buffer, buffer, centroid, 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, forceSubtype, getBounds, getBounds2D, getEnvelope, 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, toString, touches, union, within
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
extractPoint, getPathLength
addMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, ensureCapacity, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertex
area, boundary, buffer, buffer, canBeReprojected, canBeTransformed, centroid, 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, flip, forceSubtype, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getProjection, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isEmpty, isSimple, isValid, isWithinDistance, makeValid, move, out, overlaps, perimeter, reProject, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, toLines, toPoints, toPolygons, touches, transform, union, within
contains, contains, contains, contains, getBounds, intersects
isEmpty, isEmpty, isEmpty, isEmptyQuietly
forceClose, isClosed, isClosed
public Line2D()
public Line2D(Coordinate[] coordinates)
coordinates
- public Line2D(ArrayListCoordinateSequence coordinates)
public Line cloneGeometry()
Geometry
cloneGeometry
in interface Geometry
cloneGeometry
in interface Line
public Line clone() throws java.lang.CloneNotSupportedException
public Geometry offset(double distance) throws GeometryOperationNotSupportedException, GeometryOperationException
offset
in interface Geometry
GeometryOperationNotSupportedException
GeometryOperationException
public Geometry offset(int joinStyle, double distance) throws GeometryOperationNotSupportedException, GeometryOperationException
offset
in interface Geometry
GeometryOperationNotSupportedException
GeometryOperationException
public Geometry force2D() throws GeometryOperationNotSupportedException, GeometryOperationException
force2D
in interface Geometry
force2D
in class AbstractLine
GeometryOperationNotSupportedException
GeometryOperationException