|
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.postgis.adaptor import PostGISAdaptor |
|
5 from django.contrib.gis.db.backend.postgis.creation import create_spatial_db |
|
6 from django.contrib.gis.db.backend.postgis.field import PostGISField |
|
7 from django.contrib.gis.db.backend.postgis.query import * |
|
8 |
|
9 SpatialBackend = BaseSpatialBackend(name='postgis', postgis=True, |
|
10 area=AREA, |
|
11 centroid=CENTROID, |
|
12 difference=DIFFERENCE, |
|
13 distance=DISTANCE, |
|
14 distance_functions=DISTANCE_FUNCTIONS, |
|
15 distance_sphere=DISTANCE_SPHERE, |
|
16 distance_spheroid=DISTANCE_SPHEROID, |
|
17 envelope=ENVELOPE, |
|
18 extent=EXTENT, |
|
19 gis_terms=POSTGIS_TERMS, |
|
20 gml=ASGML, |
|
21 intersection=INTERSECTION, |
|
22 kml=ASKML, |
|
23 length=LENGTH, |
|
24 length_spheroid=LENGTH_SPHEROID, |
|
25 make_line=MAKE_LINE, |
|
26 mem_size=MEM_SIZE, |
|
27 num_geom=NUM_GEOM, |
|
28 num_points=NUM_POINTS, |
|
29 perimeter=PERIMETER, |
|
30 point_on_surface=POINT_ON_SURFACE, |
|
31 scale=SCALE, |
|
32 select=GEOM_SELECT, |
|
33 svg=ASSVG, |
|
34 sym_difference=SYM_DIFFERENCE, |
|
35 transform=TRANSFORM, |
|
36 translate=TRANSLATE, |
|
37 union=UNION, |
|
38 unionagg=UNIONAGG, |
|
39 version=(MAJOR_VERSION, MINOR_VERSION1, MINOR_VERSION2), |
|
40 Adaptor=PostGISAdaptor, |
|
41 Field=PostGISField, |
|
42 ) |