class GEOSGeometry(geo_input, srid=None)
Parameters: |
|
---|
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
|
HEX / HEXEWKB |
str or unicode
|
WKB / EWKB | buffer |
GeoJSON (requires GDAL) |
str or unicode
|
Please login to continue.