RasterLayer.GetSpatialPoint

RasterLayer.GetSpatialPoint method

Converts the specified column and row to the spatial coordinate.

public IPoint GetSpatialPoint(int cellX, int cellY)
ParameterTypeDescription
cellXInt32The value for column (x-coordinate). Numbering starts at 0.
cellYInt32The value for row (y-coordinate). Numbering starts at 0.

Return Value

Returns the x-coordinate of upper left corner given a column and row.

Remarks

If either parameter is passed out of range of the respective dimension of the raster, it will return coordinates outside of the raster assuming the raster’s grid is applicable outside the raster’s bounds.

See Also