mirror of
https://github.com/django/django.git
synced 2025-03-03 13:34:26 +00:00
Refs #25645 -- Removed SpatiaLite 3.x compatibility in SpatialiteSpatialRefSys.wkt.
Complements 47f22e828618581ecd4203d369a939fdfcff3a8b.
This commit is contained in:
parent
71421e8f87
commit
a20671c489
@ -58,10 +58,7 @@ class SpatialiteSpatialRefSys(models.Model, SpatialRefSysMixin):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def wkt(self):
|
def wkt(self):
|
||||||
if hasattr(self, 'srtext'):
|
return self.srtext
|
||||||
return self.srtext
|
|
||||||
from django.contrib.gis.gdal import SpatialReference
|
|
||||||
return SpatialReference(self.proj4text).wkt
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
app_label = 'gis'
|
app_label = 'gis'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user