Quantcast
Channel: Active questions tagged raster-calculator - Geographic Information Systems Stack Exchange
Viewing all articles
Browse latest Browse all 207

Find Red Pixels on a Georeferenced .png (Raster) and Convert To Polygon

$
0
0

I have a .png which has been georeferenced.

There are rectangles on the png that are a particular shade of red.

I would like to convert the raster data (.png) to polygons so that I can find the coordinates of the centroid of each of these rectangles.

Here is my Raster Calculator code: Con((Raster(r"[filename].Band_1" == 230) & (Raster(r"[filename.Band_2") == 2) & (Raster(r"[filename].Band_3")==3),1,0).

The issue is that Raster Calculator does not recognize the RGB bands.

Error:

"Input Raster: Dataset [filename].Band_1 does not exist or is notsupported."

What is wrong with my syntax?


Viewing all articles
Browse latest Browse all 207

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>