You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pixels whose centroid lies precisely on the intersection of the polygon line segment and the center-line of a pixel row are now snapped out towards the exterior of the polygon. (In other words, we round down from 0.5 not up when calculating the left edge or minimum x value of a strip of intersecting pixels)
π New Feature / Improvement
Rigorous support for topologically "complex" geometries with overlapping holes or polygons. There is a small performance hit for geometries with holes or multiple polygons because of the new deconfliction/merging steps.
π Bug Fix
Fixed bug where the bounding box calculation for MultiPolygon geometries was sometimes only using the first polygon.
Fixed bug whereby overlapping polygons or overlapping holes were misidentifying overlap as "inside" the polygon
Fixed bug where sometimes No Data or NaN values were passed to the statistical calculations
π Internal
Replaced bespoke code for pulling polygons from a provided geometry with mpoly
Replaced bespoke bounding box calculation with bbox-fns
Used rasterstats to generate "truth" test data. Results are now very similar to rasterstats, often identical. However, sometimes rasterstats and geoblaze will have results that are a few pixels different (representing less than 1% of pixels) for large complex areas. Further investigation is required.
Use write-image internally to visualize intersections, adding a manual visual way to check intersection calculations