rasterstats.utils module

rasterstats.utils.boxify_points(geom, rast)[source]

Point and MultiPoint don’t play well with GDALRasterize convert them into box polygons 99% cellsize, centered on the raster cell

rasterstats.utils.check_stats(stats, categorical)[source]
rasterstats.utils.get_percentile(stat)[source]
rasterstats.utils.key_assoc_val(d, func, exclude=None)[source]

return the key associated with the value returned by func

rasterstats.utils.rasterize_geom(geom, like, all_touched=False)[source]
rasterstats.utils.remap_categories(category_map, stats)[source]
rasterstats.utils.stats_to_csv(stats)[source]