Map and Table Calculation

MAPROW( ) function

Returns the row number of a pixel in raster map RasterMap at a certain (X,Y) Coordinate.

Syntax

MAPROW(RasterMap, Coordinate)

Input

RasterMap is a raster map
Coordinate is an (X,Y) coordinate
Domain type: a coordinate system

Output

MAPROW returns: a value
Domain: system domain Value

Notes:

Tips:

Usable in

TabCalc, Simple calculators, MapCalc 

Examples

Pocket line calculator examples:

? MAPROW(Landuse,COORD(803429,8074631))

returns the row number of the pixel in raster map Landuse at coordinate (803429, 8074631), e.g. 795

TabCalc example:

OutCol1 = MAPROW(Landuse,Coordinate)

OutCol2 = MAPROW(Tmb1,Coordinate)

 

Rainfall.mpp opened as table

Working table

ID

Name

Coordinate

OutCol1

OutCol2

1

UMSS

(803429.00, 8074631.00)

795

480

2

Taquina

(799748.00, 8082415.00)

406

249

3

Laguna Santa Rosa

(803511.00, 8087422.00)

155

68

4

Laguna Totura

(801281.00, 8088967.00)

78

30

5

PROMIC

(802613.00, 8080483.00)

502

296

6

Aro Caqua

(806816.00, 8076585.00)

697

400

7

Colca Pithua

(797465.00, 8078352.00)

609

391

8

Cerro MachaMach

(796346.00, 8087736.00)

140

95

9

Laguna WaraWara

(806042.00, 8085414.00)

256

120

Note:

As raster map Landuse uses a different georeference than raster map Tmb1, the values in output columns OutCol1 and OutCol2 are not the same

See also:

COORD MINCRDX MAPCRD RASVALUE
CRDX MINCRDY MAPCOL DIST
CRDY MAXCRDX MAPVALUE DIST2
TRANSFORM MAXCRDY