Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Convert GeoSeries geometries to WKB
to_wkb(hex: bool = False, **kwargs) -> pspd.Series
shapely.to_wkb
GeoSeries.to_wkt
>>> from shapely.geometry import Point, Polygon >>> s = GeoSeries( ... [ ... Point(0, 0), ... Polygon(), ... Polygon([(0, 0), (1, 1), (1, 0)]), ... None, ... ] ... )
>>> s.to_wkb() 0 b'���������... 1 b'�������' 2 b'�������... 3 None dtype: object
>>> s.to_wkb(hex=True) 0 010100000000000000000000000000000000000000 1 010300000000000000 2 0103000000010000000400000000000000000000000000... 3 None dtype: object
Was this page helpful?