class documentation

class SpatialProxy(DeferredAttribute):

View In Hierarchy

Undocumented

Method __get__ No summary
Method __init__ Initialize on the given Geometry or Raster class (not an instance) and the corresponding field.
Method __set__ Retrieve the proxied geometry or raster with the corresponding class specified during initialization.
Instance Variable ​_klass Undocumented
Instance Variable ​_load​_func Undocumented

Inherited from DeferredAttribute:

Method ​_check​_parent​_chain Check if the field value can be fetched from a parent field already loaded in the instance. This can be done if the to-be fetched field is a primary key field.
Instance Variable field Undocumented
def __get__(self, instance, cls=None):
Retrieve the geometry or raster, initializing it using the corresponding class specified during initialization and the value of the field. Currently, GEOS or OGR geometries as well as GDALRasters are supported.
def __init__(self, klass, field, load_func=None):
Initialize on the given Geometry or Raster class (not an instance) and the corresponding field.
def __set__(self, instance, value):

Retrieve the proxied geometry or raster with the corresponding class specified during initialization.

To set geometries, use values of None, HEXEWKB, or WKT. To set rasters, use JSON or dict values.

_klass =

Undocumented

_load_func =

Undocumented