Identifying row and column location of a raster image using ArcGIS 10.1

The solution already available online gives a python syntax error

ERROR 000989

Python syntax error: Parsing error SyntaxError: invalid syntax (line 1)

when I write

$$rowmap + 1 

in map algebra expression.


The $$RowMap, $$ColMap, $$XMap and $$YMap variables (and some others) are no longer (directly) supported as of ArcGIS 10.0.

You can use it via python:

arcpy.env.extent = arcpy.Extent(0, 0, 10, 10)  #Change to suit
# Or
arcpy.env.extent = "path to raster"
arcpy.env.cellSize = 1    #Change to suit"$$ROWMAP + 1"), "output_raster")

See also this answer and this GeoNet post.

Category: arcgis desktop Time: 2016-07-29 Views: 3

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.260 (s). 12 q(s)