public static Polyline CreatePolyline( IEnumerable<MapPoint> points, AttributeFlags attributes, SpatialReference spatialReference )
Public Overloads Shared Function CreatePolyline( _ ByVal points As IEnumerable(Of MapPoint), _ ByVal attributes As AttributeFlags, _ Optional ByVal spatialReference As SpatialReference _ ) As Polyline
Parameters
- points
- Points to create the polyline. Line segments are created from the coordinates of the points.
- attributes
- AttributeFlags to set the HasZ, HasM and HasID attributes. If no attributes should be set, pass AttributeFlags.None. If all attributes should be set, pass AttributeFlags.AllAttributes. Use the bitwise OR operator to set two attributes. For example, to set HasZ = true and HasM = true, pass AttributeFlags.HasZ | AttributeFlags.HasM. For performance reasons, the attributes of the input points are not used. However, if an attribute is specified, then the attribute values of the input points is used. For example, if AttributeFlags.HasZ is specified, then the Z-values of the input points is used for the newly created polyline.
- spatialReference
- (Optional) The SpatialReference. The default value is null. For performance reasons, the spatial references of the input points are ignored.
Return Value
A Polyline.