Select to view content in your preferred language

Clip Raster and Keep ID information from Polygon

1211
4
07-01-2025 02:02 AM
MarianaReyes
Emerging Contributor

I have polygon buffers of my study sites. I tried to use the clip tool and extract by mask using the raster (raster has different land types) input but the attribute table of the finished output just shows the land types without maintaining the ID of each of the sites. what can I do? I tried to use the model builder but it's just too much polygons. 

Tags (2)
0 Kudos
4 Replies
DanPatterson
MVP Esteemed Contributor

you could create a zone map using the id values of your buffers.  at least you would have a reference raster denoting where each study area is and proceed from there using the zonal tools to get the information that you need

Zonal Statistics as Table (Spatial Analyst)—ArcGIS Pro | Documentation

How zonal statistics tools work—ArcGIS Pro | Documentation

 


... sort of retired...
0 Kudos
MarianaReyes
Emerging Contributor

I used the zonal statistics number but I have different land types. I first tried to convert polygon to raster but for some reason I had 556 polygon features but converting it to raster became 76. 

0 Kudos
DanPatterson
MVP Esteemed Contributor

if you convert the polygons to raster using the objectid field you should have 556 polygons assuming that the ids are all unique of course.  when converting vector to raster, all shapes that have a common value are represented as one zonal value... rasters have no concept of unique zones, only common values (integer representation of course) .  to get unique areas, that is the purpose of 

Region Group (Spatial Analyst)—ArcGIS Pro | Documentation


... sort of retired...
0 Kudos
MarianaReyes
Emerging Contributor

I have names for each of the polygons, they are unique names but when converted to raster it didn't work I only converted to raster because I was using zonal statistics. Any other way I can extract the Land types of each of my polygons ? I tried model builders that extract each polygon and extract by mask but it takes time to run the model because there are 556 polygons

0 Kudos