Skip to main content
Alternate constructor to create a GeoSeries from a list or array of WKT objects

Signature

Parameters

(array - like, Series)
required
Series, list, or array of WKT objects
array - like or Index
default:"None"
The index for the GeoSeries.
Union[Any, None]
default:"None"
Coordinate Reference System of the geometry objects. Can be anything accepted by pyproj.CRS.from_user_input() <pyproj.crs.CRS.from_user_input>, such as an authority string (eg “EPSG:4326”) or a WKT string.
('raise', warn, ignore)
default:"'raise'"
  • raise: an exception will be raised if a WKT input geometry is invalid.
  • warn: a warning will be raised and invalid WKT geometries will be returned as None.
  • ignore: invalid WKT geometries will be returned as None without a warning.
  • fix: an effort is made to fix invalid input geometries (e.g. close unclosed rings). If this is not possible, they are returned as None without a warning. Requires GEOS >= 3.11 and shapely >= 2.1.
Additional arguments passed to the Series constructor, e.g. name.

Returns

GeoSeries
See also
  • GeoSeries.from_wkb

Examples