Project

General

Profile

Statistics
| Branch: | Revision:

root / env / lib / python2.7 / site-packages / django / contrib / gis / models.py @ 1a305335

History | View | Annotate | Download (390 Bytes)

1 1a305335 officers
from django.db import connection
2
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()