app/django/contrib/gis/db/backend/adaptor.py
changeset 323 ff1a9aa48cfd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/django/contrib/gis/db/backend/adaptor.py	Tue Oct 14 16:00:59 2008 +0000
@@ -0,0 +1,14 @@
+class WKTAdaptor(object):
+    """
+    This provides an adaptor for Geometries sent to the
+    MySQL and Oracle database backends.
+    """
+    def __init__(self, geom):
+        self.wkt = geom.wkt
+        self.srid = geom.srid
+
+    def __eq__(self, other):
+        return self.wkt == other.wkt and self.srid == other.srid 
+
+    def __str__(self):
+        return self.wkt