The worldfilewrite
function does not accept referencing
matrices as input. Use a geographic raster reference object (specified as a
GeographicCellsReference
or GeographicPostingsReference
object)
or a map raster reference object (specified as a MapCellsReference
or MapPostingsReference
object) as
input instead. Reference objects have several advantages over referencing matrices.
Unlike referencing matrices, reference objects have properties
that document the size of the associated raster, its limits, and
the direction of its rows and columns.
You can manipulate the limits of rasters associated with
reference objects using the geocrop
or mapcrop
function.
You can manipulate the size and resolution of rasters associated
with reference objects using the georesize
or mapresize
function.
Depending on whether the referencing matrix is in geographic or planar
coordinates, there are different ways to update your code.
Geographic Coordinates
If the referencing matrix is in geographic coordinates, create a geographic
reference object.
Create a geographic reference object for a raster of cells by
using the georefcells
function.
Create a geographic reference object for a raster of regularly
posted samples by using the georefpostings
function.
Convert from a referencing matrix to a geographic reference
object by using the refmatToGeoRasterReference
function.
Once you have created a reference object, replace uses of the referencing
matrix in your code with the reference object.
Planar Map Coordinates
If the referencing matrix is in planar map coordinates, create a map reference object.
Create a map reference object for a raster of cells by using the
maprefcells
function.
Create a map reference object or for a raster of regularly
posted samples by using the maprefpostings
function.
Convert from a referencing matrix to a map reference object by
using the refmatToMapRasterReference
function.
Once you have created a reference object, replace uses of the referencing
matrix in your code with the reference object.