com.esri.core.geometry
public final 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.
|
| 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.
|
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, applyTransformation, calculateArea2D, calculateLength2D, calculatePathLength2D, closeAllPaths, closePathWithLine, copyTo, dropAllAttributes, dropAttribute, getAttributeAsDbl, getAttributeAsInt, getBoundary, getDescription, getPathCount, getPathEnd, getPathIndexFromPointIndex, getPathSize, getPathStart, getPoint, getPointCount, getSegmentCount, getSegmentCount, getStateFlag, getXY, getXY, insertPath, insertPoint, insertPoints, isClosedPath, isClosedPathInXYPlane, isEmpty, lineTo, lineTo, queryCoordinates, queryCoordinates, queryCoordinates, queryEnvelope, queryEnvelope2D, queryInterval, queryLooseEnvelope, queryPathEnvelope2D, querySegmentIterator, querySegmentIteratorAtVertex, removePath, removePoint, replaceNaNs, reverseAllPaths, reversePath, setAttribute, setAttribute, setEmpty, setPoint, setXY, startPath, startPath_assignVertexDescriptionImpl, getCoordinates2D, getPointaddID, addM, copy, getDimensionFromType, hasAttribute, hasID, hasM, hasZ, isArea, isLinear, isMultiPath, isMultiVertex, isPoint, isSegment, queryLooseEnvelope2D, toString, vertex_countpublic Geometry createInstance()
GeometrycreateInstance in class Geometrypublic int getDimension()
GeometryReturns 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 Geometrypublic Geometry.Type getType()
Geometrypublic boolean equals(Object other)
public int hashCode()
public void addSegment(Segment segment, boolean bStartNewPath)
MultiPathaddSegment in class MultiPathsegment - 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 © 2015. All Rights Reserved.