Closed knaaptime closed 3 years ago
This does not help in case of multipolygons. We do unary_union, then fail -> except:
and do it again.
I'd do unary_union, save it separately and pass it directly to _to_hex
and that loop in case of multipolygon instead of passing gdf.
gotcha. the new strategy should handle it this way
Hey @knaaptime, I have pushed a bit of a cleanup. There's no need to go via geopandas, explode and such in this. Feel free to revert if you don't like this way but it seems to be cleaner and more straightforward to my eyes like this.
excellent, thank you! I was just in the middle of doing a portion of this because my crs handling was ridiculous. Looking at the code for too long and jumping through too many hoops :)
@martinfleis i had to move the clip up above the reprojection otherwise the gdfs are misaligned, otherwise i think this is set
Codecov Report
100.00% <100.00%> (ø)
89.47% <100.00%> (+0.14%)
Continue to review full report at Codecov.