mirror of https://github.com/django/django.git
Removed unused SpatialOperations.from_wkb.
Unused since its introduction in ff60c5f9de
.
This commit is contained in:
parent
c91dcd36fc
commit
ef9344b3a5
|
@ -38,7 +38,6 @@ class BaseSpatialOperations:
|
|||
|
||||
# Constructors
|
||||
from_text = False
|
||||
from_wkb = False
|
||||
|
||||
# Default conversion functions for aggregates; will be overridden if implemented
|
||||
# for the spatial backend.
|
||||
|
|
|
@ -36,10 +36,6 @@ class MySQLOperations(BaseSpatialOperations, DatabaseOperations):
|
|||
def select(self):
|
||||
return self.geom_func_prefix + 'AsText(%s)'
|
||||
|
||||
@cached_property
|
||||
def from_wkb(self):
|
||||
return self.geom_func_prefix + 'GeomFromWKB'
|
||||
|
||||
@cached_property
|
||||
def from_text(self):
|
||||
return self.geom_func_prefix + 'GeomFromText'
|
||||
|
|
|
@ -29,7 +29,6 @@ class SpatiaLiteOperations(BaseSpatialOperations, DatabaseOperations):
|
|||
unionagg = 'GUnion'
|
||||
|
||||
from_text = 'GeomFromText'
|
||||
from_wkb = 'GeomFromWKB'
|
||||
select = 'AsText(%s)'
|
||||
|
||||
gis_operators = {
|
||||
|
|
Loading…
Reference in New Issue