public abstract class BaseLine2DM extends AbstractLine
AbstractLine.LineIterator, AbstractLine.VertexIteratorGeometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatuscoordinatesBEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W| Constructor and Description |
|---|
BaseLine2DM(int type) |
BaseLine2DM(int type,
Coordinate[] coordinates) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVertex(double x,
double y) |
void |
addVertex(double x,
double y,
double z) |
protected Point |
fixPoint(Point point) |
double |
getCoordinateAt(int index,
int dimension) |
Point |
getVertex(int index) |
void |
setCoordinateAt(int index,
int dimension,
double value) |
MultiLine |
toLines()
Converts the geometry to be lines and makes with them a multiLine
|
MultiPoint |
toPoints()
Converts the geometry to be points and makes with them a multiPoint
|
MultiPolygon |
toPolygons()
Converts the geometry to be polygons and makes with them a multiPolygon
|
addMoveToVertex, addVertex, cloneCoordinates, closePrimitive, ensureCapacity, flip, getDimension, getGeneralPath, getJTS, getNumVertices, getPathIterator, getPathIterator, getShape, getShape, insertVertex, is3D, isClosed, iterator, removeVertex, reProject, setGeneralPath, setPoints, setVertex, transformgetHandlersarea, 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, getEnvelope, 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, toString, touches, union, withinclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitarea, buffer, centroid, cloneGeometry, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, getBounds2D, getEnvelope, getGeometryType, getInteriorPoint, getInternalShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, rotate, scale, snapTo, touches, union, withinpublic BaseLine2DM(int type)
polygon - public BaseLine2DM(int type,
Coordinate[] coordinates)
polygon - coordinates - public void addVertex(double x,
double y)
public void addVertex(double x,
double y,
double z)
protected Point fixPoint(Point point)
fixPoint in class AbstractLinepublic MultiPoint toPoints() throws GeometryException
GeometryGeometryExceptionpublic MultiLine toLines() throws GeometryException
GeometryGeometryExceptionpublic MultiPolygon toPolygons() throws GeometryException
GeometryGeometryExceptionpublic Point getVertex(int index)
getVertex in class AbstractLinepublic double getCoordinateAt(int index,
int dimension)
getCoordinateAt in class AbstractLinepublic void setCoordinateAt(int index,
int dimension,
double value)
setCoordinateAt in class AbstractLine