Refs #25645 -- Removed SpatiaLite 3.x compatibility in SpatialiteSpatialRefSys.wkt.

Complements 47f22e8286.
This commit is contained in:
Sergey Fedoseev 2016-06-01 20:49:55 +06:00 committed by Tim Graham
parent 71421e8f87
commit a20671c489
1 changed files with 1 additions and 4 deletions

View File

@ -58,10 +58,7 @@ class SpatialiteSpatialRefSys(models.Model, SpatialRefSysMixin):
@property
def wkt(self):
if hasattr(self, 'srtext'):
return self.srtext
from django.contrib.gis.gdal import SpatialReference
return SpatialReference(self.proj4text).wkt
return self.srtext
class Meta:
app_label = 'gis'