I am using QGIS 1.8.0 on a Windows Home Premium 7 machine. I have a single band TIFF that is 187 MB in size. My vector polygon shapefile represents a regular grid of a 147x112 36kmx36km grid cells. Both files have the same map projection parameters. I installed the NextGIS ZonalStats plugin, and tried running it. I have also tried the embedded zonal stats plugin. Finally, I have tried the following commands in the Python command window:
rasterfile = qgis.utils.iface.mapCanvas().currentLayer().source()
vectorlayer = qgis.utils.iface.mapCanvas().currentLayer()
zonalstats = qgis.analysis.QgsZonalStatistics(vectorlayer,rasterfile)
zonalstats.calculateStatistics(None)
In each case, the system fails to run to completion. Instead, I get the "Not Responding" error.
Sometimes Windows will ask me to kill the program. Other times, I have to kill it in the Task Manager.
Any help with this will be greatly appreciated as I am trying to move away from ArcGIS.
+proj=longlat +datum=WGS84 +no_defs
The project projection parameters that I am using for display purposes are as follows:
+proj=lcc +lat_1=33 +lat_2=45 +lat_0=40 +lon_0=-97 +x_0=0 +y_0=0 +a=6370997 +b=6370997 +units=m +no_defs
– James Jan 14 '13 at 15:43