refmatToGeoRasterReference
Convert referencing matrix to geographic raster reference object
Syntax
Description
Create Reference Object
converts the referencing matrix R
= refmatToGeoRasterReference(refmat
,rasterSize
)refmat
into a reference object for a
raster of cells referenced to geographic coordinates, using the raster size
rasterSize
.
specifies the geometric nature of the raster. When the raster contains posting point
samples referenced to geographic coordinates, specify
R
= refmatToGeoRasterReference(refmat
,rasterSize
,rasterInterpretation
)rasterInterpretation
as "postings"
. The default
for rasterInterpretation
is "cells"
, which
specifies a raster of cells.
Note
Instead of converting a referencing matrix to a reference object, you can create a reference object directly.
Create a reference object for a raster of cells referenced to geographic coordinates by using the
georefcells
function.Create a reference object for a raster of posting points referenced to geographic coordinates by using the
georefpostings
function.
Validate Inputs
,
when R
= refmatToGeoRasterReference(___,funcName
)refmat
or rasterSize
is invalid, includes
the specified function name in generated error identifiers. This syntax uses any
combination of input arguments from previous syntaxes, and is useful when you want to both
validate and convert a referencing matrix. For more information about validating inputs,
see the validateattributes
function.
verifies that the R
= refmatToGeoRasterReference(Rin
,rasterSize
,___)RasterSize
property of the geographic raster
reference object Rin
matches rasterSize
, and then
returns Rin
in R
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2011a