Skip to content
  • RasterInfo
  • class Esri::ArcGISRuntime::RasterInfo

    Information about a specific raster. More...

    Header: #include <RasterInfo.h>
    Since: Esri::ArcGISRuntime 300.0
    Inherits: Esri::ArcGISRuntime::Object

    Public Functions

    virtual ~RasterInfo() override
    double cellSizeX() const
    double cellSizeY() const
    Esri::ArcGISRuntime::Envelope extent() const
    Esri::ArcGISRuntime::SpatialReference spatialReference() const

    Detailed Description

    Properties in this class describe basic characteristics of a raster. For example, extent provides the geographic area covered by the raster, while cellSizeX and cellSizeY specify the cell size (ground distance per pixel), which defines the spatial resolution of the raster.

    Member Function Documentation

    [override virtual noexcept] RasterInfo::~RasterInfo()

    Destructor.

    double RasterInfo::cellSizeX() const

    Returns the cell size (spatial resolution) of the raster in the x dimension.

    The cell size is in the units of the spatialReference.

    If the raster is not georeferenced, this property is 1.

    double RasterInfo::cellSizeY() const

    Returns the cell size (spatial resolution) of the raster in the y dimension.

    The cell size is in the units of the spatialReference.

    If the raster is not georeferenced, this property is 1.

    Esri::ArcGISRuntime::Envelope RasterInfo::extent() const

    Returns the full extent of the raster.

    The extent is defined using the spatialReference coordinate space.

    If the raster is not georeferenced, the Envelope is defined with coordinates based on the raster's width and height.

    Esri::ArcGISRuntime::SpatialReference RasterInfo::spatialReference() const

    Returns the spatial reference of the raster.

    Properties such as extent, cellSizeX, and cellSizeY are defined in the context of this spatial reference.

    If the raster is not georeferenced, this property is empty.

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