Fixed #25835 -- Removed Adaptor alias from spatial operations classes.
This commit is contained in:
parent
2084aed20c
commit
49f1cc54e6
|
@ -16,7 +16,6 @@ class MySQLOperations(BaseSpatialOperations, DatabaseOperations):
|
||||||
from_text = 'GeomFromText'
|
from_text = 'GeomFromText'
|
||||||
|
|
||||||
Adapter = WKTAdapter
|
Adapter = WKTAdapter
|
||||||
Adaptor = Adapter # Backwards-compatibility alias.
|
|
||||||
|
|
||||||
gis_operators = {
|
gis_operators = {
|
||||||
'bbcontains': SpatialOperator(func='MBRContains'), # For consistency w/PostGIS API
|
'bbcontains': SpatialOperator(func='MBRContains'), # For consistency w/PostGIS API
|
||||||
|
|
|
@ -60,7 +60,6 @@ class OracleOperations(BaseSpatialOperations, DatabaseOperations):
|
||||||
disallowed_aggregates = (aggregates.Collect, aggregates.Extent3D, aggregates.MakeLine)
|
disallowed_aggregates = (aggregates.Collect, aggregates.Extent3D, aggregates.MakeLine)
|
||||||
|
|
||||||
Adapter = OracleSpatialAdapter
|
Adapter = OracleSpatialAdapter
|
||||||
Adaptor = Adapter # Backwards-compatibility alias.
|
|
||||||
|
|
||||||
area = 'SDO_GEOM.SDO_AREA'
|
area = 'SDO_GEOM.SDO_AREA'
|
||||||
gml = 'SDO_UTIL.TO_GMLGEOMETRY'
|
gml = 'SDO_UTIL.TO_GMLGEOMETRY'
|
||||||
|
|
|
@ -56,7 +56,6 @@ class PostGISOperations(BaseSpatialOperations, DatabaseOperations):
|
||||||
version_regex = re.compile(r'^(?P<major>\d)\.(?P<minor1>\d)\.(?P<minor2>\d+)')
|
version_regex = re.compile(r'^(?P<major>\d)\.(?P<minor1>\d)\.(?P<minor2>\d+)')
|
||||||
|
|
||||||
Adapter = PostGISAdapter
|
Adapter = PostGISAdapter
|
||||||
Adaptor = Adapter # Backwards-compatibility alias.
|
|
||||||
|
|
||||||
gis_operators = {
|
gis_operators = {
|
||||||
'bbcontains': PostGISOperator(op='~'),
|
'bbcontains': PostGISOperator(op='~'),
|
||||||
|
|
|
@ -25,7 +25,6 @@ class SpatiaLiteOperations(BaseSpatialOperations, DatabaseOperations):
|
||||||
version_regex = re.compile(r'^(?P<major>\d)\.(?P<minor1>\d)\.(?P<minor2>\d+)')
|
version_regex = re.compile(r'^(?P<major>\d)\.(?P<minor1>\d)\.(?P<minor2>\d+)')
|
||||||
|
|
||||||
Adapter = SpatiaLiteAdapter
|
Adapter = SpatiaLiteAdapter
|
||||||
Adaptor = Adapter # Backwards-compatibility alias.
|
|
||||||
|
|
||||||
area = 'Area'
|
area = 'Area'
|
||||||
centroid = 'Centroid'
|
centroid = 'Centroid'
|
||||||
|
|
Loading…
Reference in New Issue