pysal / tobler

Spatial interpolation, Dasymetric Mapping, & Change of Support
https://pysal.org/tobler
BSD 3-Clause "New" or "Revised" License
144 stars 30 forks source link

h3fy fails with Polygon Z #194

Closed martinfleis closed 7 months ago

martinfleis commented 7 months ago

If you have a PolygonZ geometry, h3fy fails. I suggest we sanitise the geometries internally using something like

shapely.force_2d(gdf.geometry)

to remove the Z coordinates because those shall just be ignored.