Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

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 soil map (vector-polygon layer) and a map of the crops farmed in the same area (raster layer, from the US Cropland Data Layer).

I would like to calculate for a given soil type, the surface farmed per crop. How do I do that?

The Zonal Statistics and ZonalStats plugins didn't solve my problem.

Hope I am clear enough. Thanks

share|improve this question

You can use the Raster to Polygon tool in QGIS's Raster menu. Then you can run an intersection to get a cropland / soil layer.

share|improve this answer

May be you can try to write your own custom script .. Following link will be good resource for you

share|improve this answer
How would this custom script work? What functions, specifically, do you suggest to use? – Simbamangu Oct 23 '12 at 14:46
Thanks! Could you give more details about the script you think I should write? I confess I don't know where to start. – Bap Oct 25 '12 at 19:23

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.