| author | ymh <ymh.work@gmail.com> |
| Tue, 25 May 2010 02:43:45 +0200 | |
| changeset 29 | cc9b7e14412b |
| parent 0 | 0d40e90630ef |
| permissions | -rw-r--r-- |
| 29 | 1 |
from django.db import connection |
| 0 | 2 |
|
| 29 | 3 |
if (hasattr(connection.ops, 'spatial_version') and |
4 |
not connection.ops.mysql): |
|
5 |
# Getting the `SpatialRefSys` and `GeometryColumns` |
|
6 |
# models for the default spatial backend. These |
|
7 |
# aliases are provided for backwards-compatibility. |
|
8 |
SpatialRefSys = connection.ops.spatial_ref_sys() |
|
9 |
GeometryColumns = connection.ops.geometry_columns() |