gemgis.vector.create_hexagon
gemgis.vector.create_hexagon#
- gemgis.vector.create_hexagon(center: shapely.geometry.point.Point, radius: Union[int, float])#
Function to create one hexagon
- Parameters
center (shapely.geometry.Point) – Shapely Point representing the center of the hexagon
radius (int, float) – Radius of the hexagon
- Returns
geometry.Polygon(hex_coords) – Shapley Polygon in the shape of a hexagon
- Return type
shapely.geometry.Polygon
New in version 1.0.x.
Changed in version 1.1.3: Optimized creation of hexagon
See also
create_hexagon_grid
Creating a hexagon grid