summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Smith <39445562+smithdc1@users.noreply.github.com>2024-01-04 20:50:14 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2024-01-05 11:55:44 +0100
commit45f59d0eab56629f88826117e911af05bd55d2c3 (patch)
tree56fe8e23e617cdd36a5c6cefcd600a1eb9bfc91f /tests
parent9b056aa5afbd1f037189f5b9250ef68e87a93e19 (diff)
Fixed #35086 -- Added support for BoundedCircle on Spatialite 5.1+.
Spatialite 5.1 added support for BoundingCircle (GEOSMinimumBoundingCircle). GEOS 3.7 is required which is lower than Django's currently supported minmum of 3.8. https://groups.google.com/g/spatialite-users/c/hAJ2SgitN4M https://www.gaia-gis.it/gaia-sins/spatialite-sql-5.1.0.html
Diffstat (limited to 'tests')
-rw-r--r--tests/gis_tests/geoapp/test_functions.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py
index 047c7f9036..9edadc48c2 100644
--- a/tests/gis_tests/geoapp/test_functions.py
+++ b/tests/gis_tests/geoapp/test_functions.py
@@ -258,7 +258,12 @@ class GISFunctionsTests(FuncTestMixin, TestCase):
# num_seg is the number of segments per quarter circle.
return (4 * num_seg) + 1
- expected_areas = (169, 136) if connection.ops.postgis else (171, 126)
+ if connection.ops.postgis:
+ expected_areas = (169, 136)
+ elif connection.ops.spatialite:
+ expected_areas = (168, 135)
+ else: # Oracle.
+ expected_areas = (171, 126)
qs = Country.objects.annotate(
circle=functions.BoundingCircle("mpoly")
).order_by("name")