Returns the (X,Y) coordinate of a raster map at a certain row, column position.
Syntax
MAPCRD(RasterMap)
MAPCRD(RasterMap, RowNumber, ColumnNumber)
Input
RasterMap | is a raster map |
RowNumber | is a row number |
ColumnNumber | is a column number |
Output
MAPCRD returns: | an (X,Y) coordinate |
Domain: | the coordinate system used by the georeference of raster map RasterMap |
Note:
MAPCRD is mostly used as input in an expression.
Tips:
Usable in
Simple calculators, MapCalc, TabCalc
Examples
Pocket line calculator examples:
? MAPCRD(DEM, 120,150) |
returns the coordinate of a raster map DEM at row 120 and column 150, e.g. (798470.00,8088130.00). |
? DIST(MAPCRD(Geology,1,1),MAPCRD(Geology,1,MAPCOLS(Geology))) | |
returns the distance (e.g. 12720.000 m) of a pixel at the left boundary and a pixel at the right boundary of map Geology. Since the map has a rectangular shape you can use any row number you like. In this example the first one is taken. Note: The function MAPCOLS returns the number of columns in a map. Therefore, it is unnecessary to put the map on the screen to find out which column is the last one. |
TabCalc examples:
LanduseCrd=MAPCRD(Landuse,Row,Col)
Tmb1Crd=MAPCRD(Tmb1,Row,Col)
Tmgeo.grf opened as table |
X |
Y |
Row |
Col |
LanduseCrd |
Tmb1Crd |
|
1 |
801490 |
8089155 |
23 |
90 |
(797270.00,8090070.00) |
(801489.15,8089154.06) |
2 |
802004 |
8075147 |
471 |
205 |
(799590.00,8081110.00) |
(802013.11,8075141.54) |
3 |
800242 |
8074191 |
510 |
156 |
(798590.00,8080330.00) |
(800251.34,8074210.12) |
4 |
802445 |
8077922 |
379 |
201 |
(799490.00,8082950.00) |
(802471.55,8077928.79) |
5 |
802841 |
8076212 |
433 |
224 |
(799950.00,8081870.00) |
(802805.90,8076196.50) |
6 |
797727 |
8076145 |
461 |
61 |
(796690.00,8081310.00) |
(797718.58,8076137.76) |
7 |
805768 |
8086385 |
90 |
247 |
(800410.00,8088730.00) |
(805767.38,8086388.24) |
Note:
As maps Landuse and Tmb1 use different georeferences, the returned coordinates in the output columns are not the same.
See also:
COORD | MINCRDX | MAPROW | RASVALUE |
CRDX | MINCRDY | MAPCOL | DIST |
CRDY | MAXCRDX | MAPVALUE | DIST2 |
TRANSFORM | MAXCRDY |