public static Polygon CreatePolygon( IEnumerable<MapPoint> points, SpatialReference spatialReference )
Public Overloads Shared Function CreatePolygon( _ ByVal points As IEnumerable(Of MapPoint), _ Optional ByVal spatialReference As SpatialReference _ ) As Polygon
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 CreatePolygon(IEnumerable<MapPoint>,AttributeFlags,SpatialReference).
Return Value
A Polygon.