I have the DEM of a State in ERDAS Imagine (.img) format. I have a shapefile containing the counties of that state.

I want to split the whole raster into DEMs of the individual counties. The counties are irregular polygons. So this isn't as easy as splitting the Raster into tiles.

How do I split a raster with a vector polygon shapefile?

I am looking for what is basically the Raster equivalent of the [Split tool][1].

I tried using [Clip tool][2], and the [Extract by mask][3] tool, but both of them are unhelpful since they work only on single polygons.

I have looked at the answer given here: https://gis.stackexchange.com/questions/15658/need-to-clip-raster-based-on-field-name-in-arcgis-9-3
, but Hawth Tools aren't available for ArcGIS 10.0

I have ArcGIS 10.0+ Spatial Analyst Extension, and QGIS 1.8. A solution in either will be acceptable.


  [1]: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Split/000800000006000000/
  [2]: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Clip/00170000009n000000/
  [3]: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Extract_by_Mask/009z0000002n000000/