summaryrefslogtreecommitdiffstats
path: root/webapp/django/contrib/gis/db/backend/postgis/__init__.py
blob: 8a4d09e0d55cebe6da9461d641f1735b2dbfd0b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
__all__ = ['create_spatial_db', 'get_geo_where_clause', 'SpatialBackend']

from django.contrib.gis.db.backend.base import BaseSpatialBackend
from django.contrib.gis.db.backend.postgis.adaptor import PostGISAdaptor
from django.contrib.gis.db.backend.postgis.creation import create_spatial_db
from django.contrib.gis.db.backend.postgis.field import PostGISField
from django.contrib.gis.db.backend.postgis.query import *

SpatialBackend = BaseSpatialBackend(name='postgis', postgis=True,
                                    area=AREA,
                                    centroid=CENTROID,
                                    difference=DIFFERENCE,
                                    distance=DISTANCE,
                                    distance_functions=DISTANCE_FUNCTIONS,
                                    distance_sphere=DISTANCE_SPHERE,
                                    distance_spheroid=DISTANCE_SPHEROID,
                                    envelope=ENVELOPE,
                                    extent=EXTENT,
                                    gis_terms=POSTGIS_TERMS,
                                    gml=ASGML,
                                    intersection=INTERSECTION,
                                    kml=ASKML,
                                    length=LENGTH,
                                    length_spheroid=LENGTH_SPHEROID,
                                    make_line=MAKE_LINE,
                                    mem_size=MEM_SIZE,
                                    num_geom=NUM_GEOM,
                                    num_points=NUM_POINTS,
                                    perimeter=PERIMETER,
                                    point_on_surface=POINT_ON_SURFACE,
                                    scale=SCALE,
                                    select=GEOM_SELECT,
                                    svg=ASSVG,
                                    sym_difference=SYM_DIFFERENCE,
                                    transform=TRANSFORM,
                                    translate=TRANSLATE,
                                    union=UNION,
                                    unionagg=UNIONAGG,
                                    version=(MAJOR_VERSION, MINOR_VERSION1, MINOR_VERSION2),
                                    Adaptor=PostGISAdaptor,
                                    Field=PostGISField,
                                    )