I want to calculate the value of certain areas of my raster, which are determined by a polygon layer. I can't use the zonal statistics tool, I receive an error about inputs. How should I do it?(the green spots is my polygon layer)
closed as off-topic by PolyGeo♦ Sep 20 '17 at 22:17
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – PolyGeo
You can also try using Zonal Statistics as Table. It will calculate the statistics (many options, such as area, mean, median, min, max, etc.) of the raster within your polygons or another raster layer.
We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.
In Mapinfo you can do this easily.
Below steps should work if you have Mapinfo 15.2 and above (64 bit version).
2nd way is to clip the raster using clip tool and then open statistics tool.
Let me know if you run into some trouble.
I think the problem was my raster, having float values instead of integer. I went back and made my raster with integer values again and used the tool, it worked out.