gis.geos.GEOSGeometry

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
HEX / HEXEWKB str or unicode
WKB / EWKB buffer
GeoJSON (requires GDAL) str or unicode
doc_Django
2016-10-09 18:38:16
Comments
Leave a Comment

Please login to continue.