Reference raster cells to geographic coordinates
A geographic cells raster reference object encapsulates the relationship between a geographic coordinate system and a system of intrinsic coordinates anchored to the columns and rows of a 2-D spatially referenced raster grid or image.
The raster must be sampled regularly in latitude and longitude, and its columns and rows must be aligned with meridians and parallels, respectively. For more information about coordinate systems, see Intrinsic Coordinate System.
You can use any of the following functions to create a
GeographicCellsReference
object to reference a regular raster of
cells to geographic coordinates.
georefcells
— Create a
geographic raster reference object.
georasterref
— Convert a
world file to a geographic raster reference object.
refmatToGeoRasterReference
—
Convert a referencing matrix to a geographic raster reference object.
refvecToGeoRasterReference
— Convert a referencing vector to a geographic raster reference
object.
For example, to construct a geographic raster reference object with default property settings, use this command:
R = georefcells()
R = GeographicCellsReference with properties: LatitudeLimits: [0.5 2.5] LongitudeLimits: [0.5 2.5] RasterSize: [2 2] RasterInterpretation: 'cells' ColumnsStartFrom: 'south' RowsStartFrom: 'west' CellExtentInLatitude: 1 CellExtentInLongitude: 1 RasterExtentInLatitude: 2 RasterExtentInLongitude: 2 XIntrinsicLimits: [0.5 2.5] YIntrinsicLimits: [0.5 2.5] CoordinateSystemType: 'geographic' AngleUnit: 'degree'
contains | Determine if geographic or map raster contains points |
geographicToDiscrete | Transform geographic to discrete coordinates |
geographicToIntrinsic | Transform geographic to intrinsic coordinates |
intrinsicToGeographic | Transform intrinsic to geographic coordinates |
intrinsicXToLongitude | Convert from intrinsic x to longitude coordinates |
intrinsicYToLatitude | Convert from intrinsic y to latitude coordinates |
latitudeToIntrinsicY | Convert from latitude to intrinsic y coordinates |
longitudeToIntrinsicX | Convert from longitude to intrinsic x coordinates |
sizesMatch | Determine if geographic or map raster object and image or raster are size-compatible |
worldFileMatrix | Return world file parameters for transformation |