I think this is more of a syntax problem that I have here. But I am absolutely not able to figure it out. On a different Linux machine I got the following working:
zoneStat = QgsZonalStatistics (polygonLayer, rasterFilePath, 'pre-', 1, QgsZonalStatistics.Mean())
zoneStat.calculateStatistics(None)
to just calculate the mean and then append it to the .dbf file of the shapefile.
The error I get is TypeError: 'Statistic' object is not callable
.
I see whats the problem, but even after studying the API I couldn't figure it out.
What am I doing wrong here?