mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
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
This commit is contained in:
committed by
Mariusz Felisiak
parent
9b056aa5af
commit
45f59d0eab
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user