Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Seems like such a simple plugin, but it just won't work.

I'm trying to run Zonal Statistics to find the mean value of a raster's pixels within the area of a vector polygon, but all it will give me is 'NULL'. The polygon and the raster are both in the same CRS. There is one null data point within the area, it has a no data value of -9 and is identified as "null (no data). But I don't believe that that is the issue because choosing an area that does not contain a null still doesn't work.

In order to see the new columns in the attribute table I find it necessary to toggle editing on the polygon on and off. I've tried running it with editing both on and off, one time it worked with editing on! But never again. Is it supposed to require editing to be on?

I'm using QGIS 1.8.0 on a Mac running OS 10.7.5.

The dashed line marks the bounds of "LowDustRegion". "Gale_Crater_1_tes_seasonal_Daytime_median" is the course resolution raster behind.

Only 'NULL' is recorder in the Attribute table.

share|improve this question
I had the same problem, it was solved when I set both layers to the same CRS, please double-check that. –  user23515 Oct 31 '13 at 19:34

1 Answer 1

I just ran into the same problem, and it seems that you can only get this to work if the name of your output field is 5 characters or less. I tried searching the forums to see if others had posted this info, but no luck so I figured it out based on trial and error (lots of error...). Incidentally, you do not have to be in editing mode to perform the zonal stats.

share|improve this answer

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.