14 lines
449 B
Python
14 lines
449 B
Python
from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures
|
|
from django.db.backends.sqlite3.features import (
|
|
DatabaseFeatures as SQLiteDatabaseFeatures,
|
|
)
|
|
from django.utils.functional import cached_property
|
|
|
|
|
|
class DatabaseFeatures(BaseSpatialFeatures, SQLiteDatabaseFeatures):
|
|
supports_3d_storage = True
|
|
|
|
@cached_property
|
|
def supports_area_geodetic(self):
|
|
return bool(self.connection.ops.lwgeom_version())
|