GeographicCellsReference
Reference raster cells to geographic coordinates
Description
A geographic cells raster reference object contains information that describes the relationship between a geographic coordinate system and an intrinsic coordinate system that is anchored to the columns and rows of a 2-D spatially referenced raster grid or image of cells.
In order to reference a raster of cells to geographic coordinates by using a
GeographicCellsReference
object, the raster must be sampled
regularly in latitude and longitude, and its columns and rows must be aligned with
meridians and parallels, respectively. The sample spacing from row to row need not equal
the sample spacing from column to column.
This image illustrates a 8-by-10 geographic raster of cells. The raster cells have an extent of 1 degree in latitude and longitude, cover longitude values in the range [40,50] in degrees, and cover latitude values in the range [20,28] in degrees. The boundary of the raster of cells is made up of the outermost boundaries of the outermost cells.
To reference a raster of postings to geographic coordinates, use a GeographicPostingsReference
object instead.
Creation
You can use these functions to create GeographicCellsReference
objects:
readgeoraster
— Import a raster data file as an array and a reference object.wmsread
— Import a raster map from a Web Map Service (WMS) server as an array and a reference object.georefcells
— Create a geographic raster reference object by specifying the latitude and longitude limits of the raster and either the size of the raster or the extent of the cells.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.
Properties
Object Functions
contains | Determine if geographic or map raster contains points |
cropToBlock | Crop raster reference object to row and column limits of raster |
geographicGrid | Geographic coordinates of raster elements |
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 |
Examples
More About
Version History
Introduced in R2013b