python-rasterstats icon indicating copy to clipboard operation
python-rasterstats copied to clipboard

Summary statistics of geospatial raster datasets based on vector geometries.

Results 44 python-rasterstats issues
Sort by recently updated
recently updated
newest added

With 'large' raster datasets of integer datatype, rasterstats wastefully casts the ndarray read from the raster up to int64. In the extreme case, this uses 8 times more memory than...

This PR resolves a few shapely deprecation warnings: - Use `shapely.errors.ShapelyError` (`ReadingError` was also only from `shapely.errors`) - Use `geom.geom_type` instead of `geom.type` - Fix inconsistent dimensionality error with test...

I am getting a wrong value after the point query on tif files below using the shp file below. For validation, I overlapped all of them in QGIS software and...

Hi, this is more a proposal than a bug report. Since python-rasterstats directly imports `click`: https://github.com/perrygeo/python-rasterstats/blob/5da3110230df44e228ba21f16a9d31ab7e84e0d5/src/rasterstats/cli.py#L6 and since there's a known issue with click=7.1` in `requirements.txt` would be great. The...

I've found that for the polygons that happen to be smaller than the image pixel, zonal_stats returns empty results. Although there are other packages to extract pixel values from points,...

This PR is supposed to add support for zonal statistics of multiband raster data, similar to the issue raised in #73 . If you for example want to calculate the...

Hello, Reading the [documentation](https://pythonhosted.org/rasterstats/manual.html#rasterization-strategy) about Rasterization strategy I see there are two current possible strategies: - *default* : pixel is included if its centroid is within the geometry) - *all_touched*...

`zonalstats` was originally optimized for large vector feature collections against a single raster band (i.e. thousands of polygons against a DEM raster) There is another use case which `zonalstats` doesn't...

enhancement

Hey hey. Great stuff. `Question:` When using `python-rasterstats` with one polygon and many rasters (or vice versa), do you see a clear spot where intermediate steps can be cached? Examples:...

enhancement

Hi, thanks for this great package. I'm wondering if it's possible to pass an *open* raster (as opposed to simply the path) to zonalstats (without converting to `ndarray` first). My...

enhancement