Django

Code

Show
Ignore:
Timestamp:
02/10/08 20:25:01 (10 months ago)
Author:
jbronn
Message:

gis: Fixed 6414, and applied DRY to spatial backend internals. Changes include:

(1) Support for distance calculations on geometry fields with geodetic coordinate systems (e.g., WGS84, the default).
(2) The get_db_prep_save and get_db_prep_lookup have been moved from the spatial backends to common implementations in GeometryField.
(3) Simplified SQL construction for GeoQuerySet methods.
(4) SpatialBackend now contains all spatial backend dependent settings.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/gis/django/contrib/gis/db/backend/oracle/__init__.py

    r6886 r7104  
    1 """ 
    2  The Oracle spatial database backend module. 
    3  
    4  Please note that WKT support is broken on the XE version, and thus 
    5  this backend will not work on such platforms.  Specifically, XE lacks  
    6  support for an internal JVM, and Java libraries are required to use  
    7  the WKT constructors. 
    8 """ 
    9 from django.contrib.gis.db.backend.oracle.creation import create_spatial_db 
    10 from django.contrib.gis.db.backend.oracle.field import OracleSpatialField, gqn 
    11 from django.contrib.gis.db.backend.oracle.query import \ 
    12      get_geo_where_clause, ORACLE_SPATIAL_TERMS, \ 
    13      ASGML, DISTANCE, GEOM_SELECT, TRANSFORM, UNION 
    14