Help CenterHelp 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
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office