Error: Extract By Mask

247
1
08-24-2019 11:38 PM
GerasimosDanalatos
New Contributor

Hello Everyone, 

I am working with a Raster file and one shapefile (Counties of Iowa). I would like to use the function extract by mask for every single county (99). I have tried that via the modelbuilder using an iterator and it does work but, it keeps the size of the raster. As a result, it is 100 times slower and also overloads my C: 


0 Kudos
1 Reply
DuncanHornby
MVP Notable Contributor

I've come across this issue before. How I got around it was to run copy feature on the output of the iterator and copy your single polygon to a in_memory workspace, so you have dataset with a single polygon in it. It is then this polygon that feeds into the extract by mask tool. As this is a dataset with a single polygon it takes on the extent of that single feature rather than the whole dataset thus your output raster will have a much smaller extent.

0 Kudos