Main Content

firstCornerX

Return world x-coordinate of map raster index (1,1)

Description

x = firstCornerX(R) returns the world x-coordinate of the outermost corner of the first element (1,1) of map raster R.

example

Examples

collapse all

Import a GeoTIFF image [1] of Boston as an array and a MapCellsReference object. Find the world x-coordinate of the outermost corner of the first cell.

[Z,R] = readgeoraster('boston.tif');
x = firstCornerX(R)
x = 7.6432e+05

[1] The data used in this example includes material copyrighted by GeoEye, all rights reserved.

Input Arguments

collapse all

Map raster, specified as a MapCellsReference or MapPostingsReference object.

Output Arguments

collapse all

World x-coordinate, returned as a numeric scalar.

Data Types: double

Version History

Introduced in R2013b

See Also