2010-05-05 05:43:40 +08:00
|
|
|
from django.db import connection
|
|
|
|
|
|
|
|
if (hasattr(connection.ops, 'spatial_version') and
|
2013-11-26 17:43:46 +08:00
|
|
|
not connection.ops.mysql):
|
2010-05-05 05:43:40 +08:00
|
|
|
# Getting the `SpatialRefSys` and `GeometryColumns`
|
|
|
|
# models for the default spatial backend. These
|
|
|
|
# aliases are provided for backwards-compatibility.
|
|
|
|
SpatialRefSys = connection.ops.spatial_ref_sys()
|
|
|
|
GeometryColumns = connection.ops.geometry_columns()
|