2009-03-31 01:15:49 +08:00
|
|
|
__all__ = ['create_test_spatial_db', 'get_geo_where_clause', 'SpatialBackend']
|
2008-08-06 02:13:06 +08:00
|
|
|
|
|
|
|
from django.contrib.gis.db.backend.base import BaseSpatialBackend
|
|
|
|
from django.contrib.gis.db.backend.adaptor import WKTAdaptor
|
2009-03-31 01:15:49 +08:00
|
|
|
from django.contrib.gis.db.backend.mysql.creation import create_test_spatial_db
|
2008-08-06 02:13:06 +08:00
|
|
|
from django.contrib.gis.db.backend.mysql.field import MySQLGeoField
|
|
|
|
from django.contrib.gis.db.backend.mysql.query import *
|
|
|
|
|
|
|
|
SpatialBackend = BaseSpatialBackend(name='mysql', mysql=True,
|
|
|
|
gis_terms=MYSQL_GIS_TERMS,
|
|
|
|
select=GEOM_SELECT,
|
|
|
|
Adaptor=WKTAdaptor,
|
|
|
|
Field=MySQLGeoField)
|