Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a a polygon shapefile of different regions, and a raster grid of precip data. I want to take the polygon and add up all the raster precip data in each zone. I could use zonal statistics to do this, however the tool does not split pixels exactly where the polygon edge cuts through the a pixel, it instead takes either the whole pixel value or not at all. I could convert the raster data to polygons, but I was wondering if there was a way to do this without going to polygons.

share|improve this question

You can't easily get values from a fraction of a pixel, in fact, you probably don't want to get into this at all. You could always resample your raster to a higher resolution (e.g. from 50cm to 10cm) in order to better follow the polygon boundary. This method will still allow you to run zonal statistics.

share|improve this answer
+1 This is a good solution, especially considering that there's little additional precision achieved by splitting pixels in most cases. If you are confident the value in any pixel is almost uniformly distributed across the extent of that pixel, there's little to be gained by splitting the pixels (because their values won't vary much from one neighbor to the next) and when the distributions within pixels are not uniform, the split isn't much better than a guess or using the default all-or-nothing procedure anyway. – whuber Oct 27 '11 at 17:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.