# intrinsicToWorld

Transform intrinsic to planar world coordinates

## Description

example

[xWorld,yWorld] = intrinsicToWorld(R,xIntrinsic,yIntrinsic) returns the planar world coordinates corresponding to intrinsic coordinates (xIntrinsic, yIntrinsic) in map raster R. If a point is outside the bounds of R, then intrinsicToWorld extrapolates the xWorld and yWorld coordinates.

## Examples

collapse all

Import a GeoTIFF image [1] of Boston as an array and a MapCellsReference object. Find the world coordinates of the center of the cell in column 3500 and row 1200 of the array.

[xWorld,yWorld] = intrinsicToWorld(R,3500,1200)
xWorld = 7.7580e+05
yWorld = 2.9566e+06

You can reverse the operation by using the worldToIntrinsic function.

[xIntrinsic,yIntrinsic] = worldToIntrinsic(R,xWorld,yWorld)
xIntrinsic = 3.5000e+03
yIntrinsic = 1.2000e+03

## Input Arguments

collapse all

Map raster, specified as a MapCellsReference or MapPostingsReference object.

x-coordinates in intrinsic coordinate system, specified as a numeric array. xIntrinsic coordinates can be outside the bounds of the raster R.

Data Types: single | double

y-coordinates in intrinsic coordinate system, specified as a numeric array. yIntrinsic is the same size as xIntrinsic. yIntrinsic coordinates can be outside the bounds of the raster R.

Data Types: single | double

## Output Arguments

collapse all

x-coordinates in the world coordinate system, specified as a numeric array. xWorld is the same size as xIntrinsic. When xIntrinsic(k) is outside the bounds of R, intrinsicToWorld extrapolates the xWorld coordinate.

Data Types: double

y-coordinates in the world coordinate system, specified as a numeric array. yWorld is the same size as xIntrinsic. When yIntrinsic(k) is outside the bounds of R, intrinsicToWorld extrapolates the yWorld coordinate.

Data Types: double

## Version History

Introduced in R2013b