MATLAB Help Center
Return world x-coordinate of map raster index (1,1)
x = firstCornerX(R)
x = firstCornerX(R) returns the world x-coordinate of the outermost corner of the first element (1,1) of map raster R.
x
R
example
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.
MapCellsReference
[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.
MapPostingsReference
Map raster, specified as a MapCellsReference or MapPostingsReference object.
World x-coordinate, returned as a numeric scalar.
Data Types: double
double
Introduced in R2013b
firstCornerY
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
Europe
Asia Pacific
Contact your local office