public static Polygon CreatePolygon( IEnumerable<IEnumerable<Segment>> parts, SpatialReference spatialReference )
Public Overloads Shared Function CreatePolygon( _ ByVal parts As IEnumerable(Of IEnumerable(Of Segment)), _ Optional ByVal spatialReference As SpatialReference _ ) As Polygon
Parameters
- parts
- Parts to create the polygon. The spatial references of the segments in the parts 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 parts which requires traversing through the enumeration of points. For improved performance, use CreatePolygon(IEnumerable<IEnumerable<Segment>>,AttributeFlags,SpatialReference).
Return Value
A Polygon.