geopandas.GeoSeries.to_wkt#

GeoSeries.to_wkt(**kwargs)[source]#

Convert GeoSeries geometries to WKT

Parameters:
kwargs

Keyword args will be passed to pygeos.to_wkt() if pygeos is installed.

Returns:
Series

WKT representations of the geometries

See also

GeoSeries.to_wkb

Examples

>>> from shapely.geometry import Point
>>> s = geopandas.GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)])
>>> s
0    POINT (1.00000 1.00000)
1    POINT (2.00000 2.00000)
2    POINT (3.00000 3.00000)
dtype: geometry
>>> s.to_wkt()
0    POINT (1 1)
1    POINT (2 2)
2    POINT (3 3)
dtype: object