thinkingmachines / geowrangler

🌏 A python package for wrangling geospatial datasets
https://geowrangler.thinkingmachin.es/
MIT License
47 stars 14 forks source link

Implement _fix_agg for exactextract zonal stats #240

Open tm-jc-nacpil opened 1 month ago

tm-jc-nacpil commented 1 month ago

Fixing the agg spec is not yet implemented, so malformed agg specs result in error (i.e. single dicts that are not in the list). There's an existing implementation for the basic function, but it needs to be tweaked for exactextract as it does not use the "column" field

Existing implementation:https://github.com/thinkingmachines/geowrangler/blob/93c8e126b3198fa15aab432ae927dc5f2cfd8c9f/geowrangler/raster_zonal_stats.py#L48