public static Polyline CreatePolyline( IEnumerable<MapPoint> points, SpatialReference spatialReference )
Public Overloads Shared Function CreatePolyline( _ ByVal points As IEnumerable(Of MapPoint), _ Optional ByVal spatialReference As SpatialReference _ ) As Polyline
Parameters
- points
- Points to create the polyline. Line segments are created from the coordinates of the points. The spatial references of the points are checked for compatibility.
- spatialReference
- (Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from points which requires traversing through the enumeration of points. For improved performance, use CreatePolyline(IEnumerable<MapPoint>,AttributeFlags,SpatialReference).
Return Value
A Polyline.