| | 1 | __all__ = ['create_spatial_db', 'get_geo_where_clause', 'SpatialBackend'] |
|---|
| | 2 | |
|---|
| | 3 | from django.contrib.gis.db.backend.base import BaseSpatialBackend |
|---|
| | 4 | from django.contrib.gis.db.backend.oracle.adaptor import OracleSpatialAdaptor |
|---|
| | 5 | from django.contrib.gis.db.backend.oracle.creation import create_spatial_db |
|---|
| | 6 | from django.contrib.gis.db.backend.oracle.field import OracleSpatialField |
|---|
| | 7 | from django.contrib.gis.db.backend.oracle.query import * |
|---|
| | 8 | |
|---|
| | 9 | SpatialBackend = BaseSpatialBackend(name='oracle', oracle=True, |
|---|
| | 10 | area=AREA, |
|---|
| | 11 | centroid=CENTROID, |
|---|
| | 12 | difference=DIFFERENCE, |
|---|
| | 13 | distance=DISTANCE, |
|---|
| | 14 | distance_functions=DISTANCE_FUNCTIONS, |
|---|
| | 15 | gis_terms=ORACLE_SPATIAL_TERMS, |
|---|
| | 16 | gml=ASGML, |
|---|
| | 17 | intersection=INTERSECTION, |
|---|
| | 18 | length=LENGTH, |
|---|
| | 19 | limited_where = {'relate' : None}, |
|---|
| | 20 | num_geom=NUM_GEOM, |
|---|
| | 21 | num_points=NUM_POINTS, |
|---|
| | 22 | perimeter=LENGTH, |
|---|
| | 23 | point_on_surface=POINT_ON_SURFACE, |
|---|
| | 24 | select=GEOM_SELECT, |
|---|
| | 25 | sym_difference=SYM_DIFFERENCE, |
|---|
| | 26 | transform=TRANSFORM, |
|---|
| | 27 | unionagg=UNIONAGG, |
|---|
| | 28 | union=UNION, |
|---|
| | 29 | Adaptor=OracleSpatialAdaptor, |
|---|
| | 30 | Field=OracleSpatialField, |
|---|
| | 31 | ) |
|---|