Commit 848a0674 authored by Sergey Fedoseev's avatar Sergey Fedoseev Committed by Claude Paroz
Browse files

[1.9.x] Fixed #25630 -- Replaced `AsGeoHash` with `GeoHash` in unsupported GIS functions

Backport of 7521bb95 from master.
parent f1054d1f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -56,9 +56,9 @@ class BaseSpatialOperations(object):

    # Blacklist/set of known unsupported functions of the backend
    unsupported_functions = {
        'Area', 'AsGeoHash', 'AsGeoJSON', 'AsGML', 'AsKML', 'AsSVG',
        'Area', 'AsGeoJSON', 'AsGML', 'AsKML', 'AsSVG',
        'BoundingCircle', 'Centroid', 'Difference', 'Distance', 'Envelope',
        'ForceRHR', 'Intersection', 'Length', 'MemSize', 'NumGeometries',
        'ForceRHR', 'GeoHash', 'Intersection', 'Length', 'MemSize', 'NumGeometries',
        'NumPoints', 'Perimeter', 'PointOnSurface', 'Reverse', 'Scale',
        'SnapToGrid', 'SymDifference', 'Transform', 'Translate',
        'Union',
+3 −3
Original line number Diff line number Diff line
@@ -126,10 +126,10 @@ class OracleOperations(BaseSpatialOperations, DatabaseOperations):
    truncate_params = {'relate': None}

    unsupported_functions = {
        'AsGeoHash', 'AsGeoJSON', 'AsGML', 'AsKML', 'AsSVG',
        'AsGeoJSON', 'AsGML', 'AsKML', 'AsSVG',
        'BoundingCircle', 'Envelope',
        'ForceRHR', 'MemSize', 'Scale',
        'SnapToGrid', 'Translate', 'GeoHash',
        'ForceRHR', 'GeoHash', 'MemSize', 'Scale',
        'SnapToGrid', 'Translate',
    }

    def geo_quote_name(self, name):