inbo / niche_vlaanderen

Python package to run the NICHE Vlaanderen model
https://inbo.github.io/niche_vlaanderen/
MIT License
5 stars 2 forks source link

Creating statistics per shape object (zonal_stats): use alternative meaningful field to shape_id #131

Closed cecileherr closed 6 years ago

cecileherr commented 6 years ago

Niche Python Package question

A suggestion for enhancement after testing the model with a new user

The zonal stats function gives the surface area for each shape_id. It would be much easier for the end user to be able to choose a more meaningful field in his shapefile and to get the surface area expressed in terms of this meaningful field.

=> suggestion for improvement: add an option in the zonal_stats to let the user select a field from the shapefile used (shape_id could be the default if no field name is provided by the user)

stijnvanhoey commented 6 years ago

just related small issue on the documentation in the same function: the actual default and the documented default for outside are not the same

johanvdw commented 6 years ago

Should be tested combined with the outside option as well.