ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Geometry Namespace / CoordinateSystemListEntry Class / Wkid Property
Example

In This Topic
    Wkid Property (CoordinateSystemListEntry)
    In This Topic
    Gets the well-known ID of the coordinate system.
    Syntax
    public int Wkid {get;}
    Public ReadOnly Property Wkid As Integer
    Example
    Retrieve coordinate systems
    // get all the geographic coordinate systems
    IReadOnlyList<CoordinateSystemListEntry> gcs_list = GeometryEngine.Instance.GetPredefinedCoordinateSystemList(CoordinateSystemFilter.GeographicCoordinateSystem);
    
    // get the projected coordinate systems
    IReadOnlyList<CoordinateSystemListEntry> proj_list = GeometryEngine.Instance.GetPredefinedCoordinateSystemList(CoordinateSystemFilter.ProjectedCoordinateSystem);
    
    // get the vertical coordinate systems
    IReadOnlyList<CoordinateSystemListEntry> vert_list = GeometryEngine.Instance.GetPredefinedCoordinateSystemList(CoordinateSystemFilter.VerticalCoordinateSystem);
    
    // get geographic and projected coordinate systems
    IReadOnlyList<CoordinateSystemListEntry> combined_list = GeometryEngine.Instance.GetPredefinedCoordinateSystemList(CoordinateSystemFilter.GeographicCoordinateSystem | CoordinateSystemFilter.ProjectedCoordinateSystem);
    
    // investigate one of the entries
    CoordinateSystemListEntry entry = gcs_list[0];
    int wkid = entry.Wkid;
    string category = entry.Category;
    string name = entry.Name;
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also