web/lib/django/contrib/gis/db/backend/base.py
changeset 29 cc9b7e14412b
parent 28 b758351d191f
child 30 239f9bcae806
--- a/web/lib/django/contrib/gis/db/backend/base.py	Wed May 19 17:43:59 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-"""
- This module holds the base `SpatialBackend` object, which is
- instantiated by each spatial backend with the features it has.
-"""
-# TODO: Create a `Geometry` protocol and allow user to use
-# different Geometry objects -- for now we just use GEOSGeometry.
-from django.contrib.gis.geos import GEOSGeometry, GEOSException
-
-class BaseSpatialBackend(object):
-    Geometry = GEOSGeometry
-    GeometryException = GEOSException
-
-    def __init__(self, **kwargs):
-        kwargs.setdefault('distance_functions', {})
-        kwargs.setdefault('limited_where', {})
-        for k, v in kwargs.iteritems(): setattr(self, k, v)
- 
-    def __getattr__(self, name):
-        """
-        All attributes of the spatial backend return False by default.
-        """
-        try:
-            return self.__dict__[name]
-        except KeyError:
-            return False
-