ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Geometry Namespace / PolygonBuilderEx Class / FromEsriShape Method
Esri shape buffer representation of Polygon.
(Optional)The spatial reference of the Polygon.

In This Topic
    FromEsriShape Method (PolygonBuilderEx)
    In This Topic
    Creates a new instance of a Polygon class from an Esri shape buffer.
    Syntax
    public static Polygon FromEsriShape( 
       byte[] esriShapeBuffer,
       SpatialReference spatialReference
    )
    Public Shared Function FromEsriShape( _
       ByVal esriShapeBuffer() As Byte, _
       Optional ByVal spatialReference As SpatialReference _
    ) As Polygon

    Parameters

    esriShapeBuffer
    Esri shape buffer representation of Polygon.
    spatialReference
    (Optional)The spatial reference of the Polygon.

    Return Value

    Exceptions
    ExceptionDescription
    The esriShapeBuffer is empty or null.
    The Esri shape buffer is invalid or does not represent a polygon.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also