I am using ArcGIS 10.4 for Desktop.
I have a single feature class with one attribute with 5 levels describing the state of grasslands and how they have changed over time. The attached image shows a piece of this shapefile.
- Red = "grasslands lost" from 1909-2008 (now forest),
- light Green = "grasslands retained" that have remained constant,
- dark green = "grasslands gained"areas that were forest in 1909 but are now grassland in 2008
- Grey = "forest" areas in 1909 still forested in 2008
- pale blue = nonvegetated.
- white = no data
I want to isolate the Grasslands Lost (Red) that are
- completely surrounded by Grasslands Retained (light green) (ie like polygons circled in red in picture)
- touching forest (grey) (circled in blue)
In both a) and b) it is okay if the red polygons are bordering white (no data). NOTE: there is no overlap of any polygons, they only share edges.
How can I select Red polygons that ONLY have light green or light green+white as neighbours? How can I select Red polygons that have Grey as a neighbour?