spsample and HexPoints2SpatialPolygons python analogue

  hexagonal-tiles, python-3.x, r, shapely, sp

I need to create hexagonal grid and convert it to polygons. As an input I have a shapely.Polygon. I found how to solve this problem in R and I’m wondering if there is a simpe workaround for python, using modules such as shapely or geopandas, not by generating hexs from the beginning. The idea under R solution is to sample points from poly to create a hex grid. Then, convert the grid to polygons. As an output I would like to receive a list of shapely.Polygon to combine them into GeoDataFrame.

Thanks in advance!

Source: Python-3x Questions

LEAVE A COMMENT