2009-03-31 06:15:41 +08:00
|
|
|
from django.db.backends.sqlite3.base import Database
|
2009-12-22 23:18:51 +08:00
|
|
|
from django.contrib.gis.db.backends.adapter import WKTAdapter
|
2009-03-31 06:15:41 +08:00
|
|
|
|
2013-11-03 01:18:46 +08:00
|
|
|
|
2009-12-22 23:18:51 +08:00
|
|
|
class SpatiaLiteAdapter(WKTAdapter):
|
2009-03-31 06:15:41 +08:00
|
|
|
"SQLite adaptor for geometry objects."
|
|
|
|
def __conform__(self, protocol):
|
|
|
|
if protocol is Database.PrepareProtocol:
|
|
|
|
return str(self)
|