Skip to main content

DatabaseFeatures

This class defines the specific spatial and database capabilities for a SpatiaLite backend. It manages feature flags such as 3D storage support and geodetic area calculations while identifying specific test limitations related to distance lookups. The class inherits from both spatial and SQLite feature bases to provide a comprehensive set of functional constraints and supported operations.

Attributes

AttributeTypeDescription
can_alter_geometry_fieldboolean = FalseIndicates if the database backend can modify existing geometry columns, which is currently not implemented.
supports_3d_storageboolean = TrueSpecifies whether the database supports storing and retrieving three-dimensional spatial data.

Methods


supports_area_geodetic()

@classmethod
def supports_area_geodetic() - > boolean

Determines if the database supports geodetic area calculations based on the availability of the underlying geometry library.

Returns

TypeDescription
booleanTrue if the geometry library version is detectable, indicating support for geodetic area operations.

django_test_skips()

@classmethod
def django_test_skips() - > dict

Provides a mapping of specific Django GIS tests that should be skipped due to known SpatiaLite limitations, such as lack of support for distance lookups with Distance objects.

Returns

TypeDescription
dictA dictionary where keys are reason strings and values are sets of test method paths to be skipped.