Quantcast
Channel: Question and Answer » arcpy
Viewing all articles
Browse latest Browse all 767

arcpy raster to polygon without merges (or assign autoincrement values to raster cells)

$
0
0

I have a raster dataset (tiff) and I want to get a shapefile (polygons) that preserves all cells.

Unfortunately, the Raster to Polygon tool automatically merges all adjacent cells with the same values. I want to prevent this.

The only way that I could think of, is to change all cell values to an auto-incrementing value in order to avoid matching values and therefore a cell merge.

How could I do this? Or is there a more elegant way altogether?


Viewing all articles
Browse latest Browse all 767

Trending Articles