class GEOSGeometry(geo_input, srid=None)
Parameters:
geo_input – Geometry input value (string or buffer)
srid (int) – spatial reference identifier
This is the base class for all GEOS geometry objects. It initializes on the given geo_input argument, and then assumes the proper geometry subclass (e.g., GEOSGeometry('POINT(1 1)') will create a Point object).
The following input formats, along with their corresponding Python types, are accepted:
Format Input Type WKT / EWKT
str or unicode