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

script to draw a square where the raster pixels contained within are a certain type and greater than X

$
0
0

I have a raster containing different pixel values and I am interested in having squares drawn around areas that are at least X m^2 and containing at least Y type of pixels.

The data looks like this, a coverage with the following attributes:

OID     Value     Count
0       1         123123
1       2         3342
2       4         2342342
3       5         23423423
4       7         2342323

1) I would like to identify (and draw) squares of a certain area around places where there exists at least a certain amount of a pixel value.

2) Squares may overlap.

It would be nice to have the resulting squares output to a separate layer with each square being a unique feature with the following attribute data (number / % of pixels of each value, area, dimensions…).


Viewing all articles
Browse latest Browse all 767

Trending Articles