polygon-geohasher icon indicating copy to clipboard operation
polygon-geohasher copied to clipboard

ShapelyDeprecationWarning for use of cascaded_union

Open duckontheweb opened this issue 2 years ago • 0 comments

I get the following warning message when using polygon_geohasher.polygon_geohasher.geohashes_to_polygon:

.../python3.9/site-packages/polygon_geohasher/polygon_geohasher.py:56: ShapelyDeprecationWarning: The 'cascaded_union()' function is deprecated. Use 'unary_union()' instead.
    return cascaded_union([geohash_to_polygon(g) for g in geohashes])

I can suppress these using warnings.simplefilter but it might be good to switch to using unary_union as recommended in the warning message.

I'm happy to put in a PR for this.

duckontheweb avatar Jun 22 '22 19:06 duckontheweb