How to clip polygons in a shapefile by using the color values of a georeferenced tiff file?

373
3
12-31-2019 09:23 AM
EvanHirsh
New Contributor

So if you have a red part of the image, like a rectangle, in the tiff file, you would clip the shp polygons to the extent of the red part.

0 Kudos
3 Replies
Robert_LeClair
Esri Notable Contributor

Hmmmm...I'm thinking the following steps "may" work.

  1. Run the Extract by Attributes GP tool if you know the cell value for the red cells - assuming an integer raster dataset here.
  2. Then run the Raster to Polygon GP tool to convert the "selected" cells to a polygon feature class.
  3. Finally, run the Clip GP tool to clip the shapefile via the feature class created in Step 2.


Good luck!

EvanHirsh
New Contributor

I'm not sure if the raster is in integer form, it only says Red: Band_1, Green: Band_2, Blue: Band_3. When I open the Extract by Attributes to under values there is nothing to select. Is there a way to convert to an integer dataset?

0 Kudos
Robert_LeClair
Esri Notable Contributor

There's an Int GP tool that would convert a floating point raster to an integer raster - could be worth experimenting with it to see if it accomplishes what you need.

0 Kudos