worldFileMatrixToRefmat
(Removed) Convert world file matrix to referencing matrix
worldFileMatrixToRefmat
has been removed. Use the georasterref
or maprasterref
function instead. For more
information, see Version History.
Description
Input Arguments
W
— World file matrix
2-by-3 numeric array
World file matrix, specified as a 2-by-3 numeric array. A world file matrix defines a transformation that maps intrinsic coordinates to geographic or world coordinates.
Output Arguments
refmat
— Referencing matrix
3-by-2 numeric array
Referencing matrix, returned as a 3-by-2 numeric array. A referencing matrix defines a transformation that maps intrinsic coordinates to geographic or world coordinates.
For world coordinates, the function returns
refmat
so that , where (xi, yi) is a location in intrinsic coordinates and (xw, yw) is the same location in world coordinates.For geographic coordinates, the function returns
refmat
so that , where x and y specify a location in intrinsic coordinates and lat and lon specify the same location in geographic coordinates.
Version History
Introduced in R2011aR2023b: Removed
Some functions that return referencing matrices have been removed, including the
worldFileMatrixToRefmat
function. Instead of using this function,
create a raster reference object using the georasterref
or maprasterref
function. 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. For more information about reference object properties, see the
GeographicCellsReference
andMapPostingsReference
functions.You can manipulate the limits of rasters associated with reference objects using the
geocrop
ormapcrop
function.You can manipulate the size and resolution of rasters associated with reference objects using the
georesize
ormapresize
function.Most functions that accept referencing matrices as inputs also accept reference objects.
To update your code, change instances of the
worldFileMatrixToRefmat
function to the
georasterref
or maprasterref
function and
specify the size of the raster A
. Use the
georasterref
function for geographic coordinates and the
maprasterref
function for planar map coordinates.
R = georasterref(W,size(A));
You can also specify the raster interpretation as "cells"
for a
raster of cells or "postings"
for a raster of regularly posted samples.
By default, the georasterref
and maprasterref
functions use "cells"
.
R = georasterref(W,size(A),"postings");
R2022a: Warns
The worldFileMatrixToRefmat
function issues a warning that it will
be removed in a future release.
R2020b: To be removed
The worldFileMatrixToRefmat
function runs without warning but will
be removed in a future release.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)