Main Content

firstCornerY

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

Description

y = firstCornerY(R) returns the world y-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 y-coordinate of the outermost corner of the first cell.

[Z,R] = readgeoraster('boston.tif');
y = firstCornerY(R)
y = 2.9606e+06

[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 y-coordinate, returned as a numeric scalar.

Data Types: double

Version History

Introduced in R2013b

See Also