public class Polyline extends MultiPath implements Serializable
Geometry.GeometryAccelerationDegree, Geometry.GeometryType, Geometry.Type
Constructor and Description |
---|
Polyline()
Creates an empty polyline.
|
Polyline(Point start,
Point end)
Creates a polyline with one line segment.
|
Polyline(VertexDescription vd) |
Modifier and Type | Method and Description |
---|---|
void |
addSegment(Segment segment,
boolean bStartNewPath)
Adds a new segment to this multipath.
|
Geometry |
createInstance()
Creates an instance of an empty geometry of the same type.
|
boolean |
equals(Object other)
Returns TRUE when this geometry has exactly same type, properties, and
coordinates as the other geometry.
|
long |
estimateMemorySize()
Returns an estimate of this object size in bytes.
|
int |
getDimension()
Returns the topological dimension of the geometry object based on the
geometry's type.
|
Geometry.Type |
getType()
Returns the geometry type.
|
int |
hashCode()
Returns the hash code for the polyline.
|
void |
interpolateAttributes(int from_path_index,
int from_point_index,
int to_path_index,
int to_point_index) |
void |
interpolateAttributes(int semantics,
int from_path_index,
int from_point_index,
int to_path_index,
int to_point_index) |
_getImpl, add, addAttribute, addEnvelope, addEnvelope, addPath, addSegmentsFromPath, applyTransformation, assignVertexDescription, calculateArea2D, calculateLength2D, calculatePathLength2D, closeAllPaths, closePathWithLine, copyTo, dropAllAttributes, dropAttribute, getAttributeAsDbl, getAttributeAsInt, getBoundary, getDescription, getPathCount, getPathEnd, getPathIndexFromPointIndex, getPathSize, getPathStart, getPoint, getPointByVal, getPointCount, getSegmentCount, getSegmentCount, getStateFlag, getXY, getXY, insertPath, insertPoint, insertPoints, isClosedPath, isClosedPathInXYPlane, isEmpty, lineTo, lineTo, mergeVertexDescription, queryCoordinates, queryCoordinates, queryCoordinates, queryEnvelope, queryEnvelope2D, queryInterval, queryLooseEnvelope, queryPathEnvelope2D, querySegmentIterator, querySegmentIteratorAtVertex, removePath, removePoint, replaceNaNs, reverseAllPaths, reversePath, setAttribute, setAttribute, setEmpty, setPoint, setPointByVal, setXY, startPath, startPath
_assignVertexDescriptionImpl, getCoordinates2D, getPoint
addID, addM, copy, estimateMemorySize, getDimensionFromType, hasAttribute, hasID, hasM, hasZ, isArea, isLinear, isMultiPath, isMultiVertex, isPoint, isSegment, queryLooseEnvelope2D, toString, vertex_count
public Polyline()
public Polyline(VertexDescription vd)
public Geometry createInstance()
Geometry
createInstance
in class Geometry
public int getDimension()
Geometry
Returns 0 for point and multipoint.
Returns 1 for lines and polylines.
Returns 2 for polygons and envelopes
Returns 3 for objects with volume
getDimension
in class Geometry
public Geometry.Type getType()
Geometry
public long estimateMemorySize()
Geometry
This estimate doesn't include the size of the VertexDescription
object
because instances of VertexDescription
are shared among
geometry objects.
estimateMemorySize
in class Geometry
public boolean equals(Object other)
public int hashCode()
public void addSegment(Segment segment, boolean bStartNewPath)
MultiPath
addSegment
in class MultiPath
segment
- The segment to be added to this mulitpath.bStartNewPath
- TRUE if a new path will be added.public void interpolateAttributes(int from_path_index, int from_point_index, int to_path_index, int to_point_index)
public void interpolateAttributes(int semantics, int from_path_index, int from_point_index, int to_path_index, int to_point_index)
Copyright © 2018. All rights reserved.