dtoolkit.geoaccessor.index.H3.to_polygons#

H3.to_polygons() GeoSeries[source]#

Return Polygon to describe the cell boundary.

Returns:
GeoSeries

With H3 cell as the its index.

Examples

>>> import dtoolkit.geoaccessor
>>> import pandas as pd
>>> index = pd.Index([612845052823076863, 614269156845420543])
>>> index
Index([612845052823076863, 614269156845420543], dtype='int64')
>>> index.h3.to_polygons()
612845052823076863    POLYGON ((121.98797 55.00408, 121.99122 54.999...
614269156845420543    POLYGON ((100.00035 0.9963, 100.0008 1.00141, ...
dtype: geometry