ESRI_PointList

List<1>References
Represents a mutable collection of point/measurement comcos used in ESRI shape files.

Constructors

ESRI_PointList

#
public ESRI_PointList()
Create a new point list with default capacity.

ESRI_PointList

#
public ESRI_PointList(int capacity)
Create a new point list with initial capacity.
capacity (int)Initial capacity.

Properties

BoundingBox

#
public BoundingBox BoundingBox { get; }
Gets the bounding box of this point list.

HasElevation

#
public bool HasElevation { get; }
Gets whether this point list has elevation data.

HasMeasurement

#
public bool HasMeasurement { get; }
Gets whether this point list has measurement data.

IsClosed

#
public bool IsClosed { get; }
Gets whether this point list is considered closed.

Methods

Close

#
public bool Close()
Attempt to close the point list.
True if list was or has been successfully closed, false if otherwise.

SetElevation

#
public void SetElevation(int index, double elevation)
Assign an elevation to a specific point.
index (int)Index of point.
elevation (double)Elevation to assign.

SetMeasurement

#
public void SetMeasurement(int index, double measurement)
Assign a measurement to a specific point.
index (int)Index of point.
measurement (double)Measurement to assign.

ToPolyline

#
public Polyline ToPolyline()
Gets a polyline description of this point list.
Polyline.

ToSegments

#
public List<ESRI_PointList> ToSegments(HashSet<int> segmentIndices)
Break this list into several segments.
segmentIndices (HashSet<int>)Index of each segment start.
List of segments.