You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

features.py 449B

12345678910111213
  1. from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures
  2. from django.db.backends.sqlite3.features import (
  3. DatabaseFeatures as SQLiteDatabaseFeatures,
  4. )
  5. from django.utils.functional import cached_property
  6. class DatabaseFeatures(BaseSpatialFeatures, SQLiteDatabaseFeatures):
  7. supports_3d_storage = True
  8. @cached_property
  9. def supports_area_geodetic(self):
  10. return bool(self.connection.ops.lwgeom_version())