mirror of
https://github.com/django/django.git
synced 2025-08-19 10:10:42 +00:00
[1.9.x] Fixed #25630 -- Replaced AsGeoHash
with GeoHash
in unsupported GIS functions
Backport of 7521bb95d5
from master.
This commit is contained in:
parent
f1054d1f1d
commit
848a0674c4
2 changed files with 5 additions and 5 deletions
|
@ -56,9 +56,9 @@ class BaseSpatialOperations(object):
|
||||||
|
|
||||||
# Blacklist/set of known unsupported functions of the backend
|
# Blacklist/set of known unsupported functions of the backend
|
||||||
unsupported_functions = {
|
unsupported_functions = {
|
||||||
'Area', 'AsGeoHash', 'AsGeoJSON', 'AsGML', 'AsKML', 'AsSVG',
|
'Area', 'AsGeoJSON', 'AsGML', 'AsKML', 'AsSVG',
|
||||||
'BoundingCircle', 'Centroid', 'Difference', 'Distance', 'Envelope',
|
'BoundingCircle', 'Centroid', 'Difference', 'Distance', 'Envelope',
|
||||||
'ForceRHR', 'Intersection', 'Length', 'MemSize', 'NumGeometries',
|
'ForceRHR', 'GeoHash', 'Intersection', 'Length', 'MemSize', 'NumGeometries',
|
||||||
'NumPoints', 'Perimeter', 'PointOnSurface', 'Reverse', 'Scale',
|
'NumPoints', 'Perimeter', 'PointOnSurface', 'Reverse', 'Scale',
|
||||||
'SnapToGrid', 'SymDifference', 'Transform', 'Translate',
|
'SnapToGrid', 'SymDifference', 'Transform', 'Translate',
|
||||||
'Union',
|
'Union',
|
||||||
|
|
|
@ -126,10 +126,10 @@ class OracleOperations(BaseSpatialOperations, DatabaseOperations):
|
||||||
truncate_params = {'relate': None}
|
truncate_params = {'relate': None}
|
||||||
|
|
||||||
unsupported_functions = {
|
unsupported_functions = {
|
||||||
'AsGeoHash', 'AsGeoJSON', 'AsGML', 'AsKML', 'AsSVG',
|
'AsGeoJSON', 'AsGML', 'AsKML', 'AsSVG',
|
||||||
'BoundingCircle', 'Envelope',
|
'BoundingCircle', 'Envelope',
|
||||||
'ForceRHR', 'MemSize', 'Scale',
|
'ForceRHR', 'GeoHash', 'MemSize', 'Scale',
|
||||||
'SnapToGrid', 'Translate', 'GeoHash',
|
'SnapToGrid', 'Translate',
|
||||||
}
|
}
|
||||||
|
|
||||||
def geo_quote_name(self, name):
|
def geo_quote_name(self, name):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue