public abstract class BaseLine2DM extends AbstractLine
AbstractLine.LineIterator, AbstractLine.VertexIteratorGeometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatuscoordinates, LOGGERBEST, 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 |
|---|
BaseLine2DM(int type) |
BaseLine2DM(int type,
ArrayListCoordinateSequence coordinates) |
BaseLine2DM(int type,
Coordinate[] coordinates) |
| Modifier and Type | Method and Description |
|---|---|
OrientablePrimitive |
addVertex(double x,
double y)
Utility method for add a vertex
|
OrientablePrimitive |
addVertex(double x,
double y,
double z)
Utility method for add a vertex
|
protected Point |
fixPoint(Point point) |
double |
getCoordinateAt(int index,
int dimension)
Gets the one of the values of a coordinate (direct position) in a
concrete dimension.
|
Point |
getVertex(int index)
Gets a vertex (direct position)
|
OrientablePrimitive |
setCoordinateAt(int index,
int dimension,
double value)
Sets the value of a coordinate (direct position) in a concrete dimension
|
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, canBeReprojected, canBeTransformed, cloneCoordinates, closePrimitive, ensureCapacity, extractPoint, flip, force2D, force2DM, force3D, force3DM, forceClose, get, getDimension, getGeneralPath, getJTS, getNumVertices, getPathIterator, getPathIterator, getPathLength, getShape, getShape, insertVertex, is3D, isClosed, isClosed, isEmpty, iterator, removeVertex, reProject, setGeneralPath, setPoints, setVertex, size, transformgetHandlersarea, boundary, buffer, buffer, centroid, clone, 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, withinfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitarea, boundary, buffer, buffer, centroid, clone, cloneGeometry, 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, forceSubtype, getBounds2D, getEnvelope, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getProjection, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, offset, out, overlaps, perimeter, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, touches, union, withincontains, contains, contains, contains, getBounds, intersectsisEmpty, isEmpty, isEmptyQuietlypublic BaseLine2DM(int type)
polygon - public BaseLine2DM(int type,
Coordinate[] coordinates)
polygon - coordinates - public BaseLine2DM(int type,
ArrayListCoordinateSequence coordinates)
public OrientablePrimitive addVertex(double x, double y)
OrientablePrimitiveOrientablePrimitive.addVertex(Point)public OrientablePrimitive addVertex(double x, double y, double z)
OrientablePrimitiveOrientablePrimitive.addVertex(Point)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)
OrientablePrimitivegetVertex in interface OrientablePrimitivegetVertex in class AbstractLineindex - The index of the vertex to getpublic double getCoordinateAt(int index,
int dimension)
OrientablePrimitivegetCoordinateAt in interface OrientablePrimitivegetCoordinateAt in class AbstractLineindex - The index of the direct position to set.dimension - The dimension of the direct position.public OrientablePrimitive setCoordinateAt(int index, int dimension, double value)
OrientablePrimitivesetCoordinateAt in interface OrientablePrimitivesetCoordinateAt in class AbstractLineindex - The index of the direct position to setdimension - The dimension of the direct positionvalue - The value to set