ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Geometry Namespace / CoordinateSystemListEntry Class / Category Property
Example

In This Topic
    Category Property (CoordinateSystemListEntry)
    In This Topic
    Gets the category of the coordinate system. The category is a string separated by forward slashes. When there is more than one category (or region), the ordering is hierarchical. In other words, the categories in the list are ordered by area from largest to smallest.
    Syntax
    Public ReadOnly Property Category As String
    public string Category {get;}
    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also