public static Polygon CreatePolygon( IEnumerable<Segment> segments, SpatialReference spatialReference )
Public Overloads Shared Function CreatePolygon( _ ByVal segments As IEnumerable(Of Segment), _ Optional ByVal spatialReference As SpatialReference _ ) As Polygon
Parameters
- segments
- Segments to create the polyline. The spatial references of the segments 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 segments which requires traversing through the enumeration of segments. For improved performance or if you want to set these properties yourself, use CreatePolygon(IEnumerable<Segment>,AttributeFlags,SpatialReference).
Return Value
A Polygon.