USNGGrid Class

  • USNGGrid
  • class Esri::ArcGISRuntime::USNGGrid

    A class that represents the display of the United States National Grid (USNG) on the map view. More...

    Header: #include <USNGGrid.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::Grid

    Public Functions

    USNGGrid(QObject *parent = nullptr)
    virtual ~USNGGrid() override
    Esri::ArcGISRuntime::USNGGridLabelUnit labelUnit() const
    void setLabelUnit(Esri::ArcGISRuntime::USNGGridLabelUnit labelUnit)

    Detailed Description

    The United States National Grid (USNG) is a point reference system of grid references commonly used in the United States. It provides a nationally consistent language of location in a user friendly format. It is similar in design to the national grid reference systems used throughout other nations. The USNG was developed by the Federal Geographic Data Committee.

    To display the USNG grid, create a USNGGrid and set it as the grid property within the MapView.

    USNGGrid inherits from Grid and adds a property for the label unit to use.

    See also MapView::grid.

    Member Function Documentation

    [explicit] USNGGrid::USNGGrid(QObject *parent = nullptr)

    Constructs a USNG grid for displaying on a map view.

    • parent - The optional parent QObject.

    The grid is supported in spatial references which are continuously pannable or some polar spatial references. You can check the SpatialReference::isPannable property is true on your spatial reference. Examples of continuously pannable spatial references include WGS84 (WKID 4326) and Web Mercator Auxiliary Sphere (WKID 102113, 102100, or 3857).

    The following polar spatial references are also supported:

    • North pole Azimuthal Equidistant (WKID 102016)
    • North pole gnomic (WKID 102034)
    • North pole Lambert equal area (WKID 102017)
    • North pole orthographic (WKID 102035)
    • North pole stereographic (WKID 102018)
    • NSIDE EASE North (WKID 3408)
    • NSIDC Sea Ice polar stereographic north (WKID 3411)
    • WGS 1984 NSIDC Sea Ice Polar Stereographic North (WKID 3413)
    • UPS North (WKID 32661)
    • South pole Azimuthal Equidistant (WKID 102019)
    • South pole gnomic (WKID 102036)
    • South pole Lambert equal area (WKID 102020)
    • South pole orthographic (WKID 102037)
    • South pole stereographic (WKID 102021)
    • NSIDE EASE South (WKID 3409)
    • NSIDC Sea Ice polar stereographic South (WKID 3412)
    • UPS South (WKID 32761)
    • WGS1984 Antarctic polar stereographic (WKID 3031)

    [override virtual] USNGGrid::~USNGGrid()

    Destructor.

    Esri::ArcGISRuntime::USNGGridLabelUnit USNGGrid::labelUnit() const

    Returns the labeling unit scheme of the grid, such as always using meters, or using kilometers or meters depending on the display scale.

    See also setLabelUnit().

    void USNGGrid::setLabelUnit(Esri::ArcGISRuntime::USNGGridLabelUnit labelUnit)

    Sets the labeling unit of the USNG grid, such as always using meters, or using kilometers or meters depending on the display scale, to labelUnit.

    See also labelUnit().

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.