Skip to content

Commit 789b075

Browse files
smithdc1felixxm
authored andcommitted
Fixed #35774 -- Dropped support for GEOS 3.8.
GEOS 3.8 (released Oct-2019) will be more than 5 years old when Django 6.1 is released (Aug-2026).
1 parent e303889 commit 789b075

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

docs/ref/contrib/gis/geos.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ Other Properties & Methods
712712
the input vertices. If the geometry is already valid, it is returned
713713
untouched. This is similar to the
714714
:class:`~django.contrib.gis.db.models.functions.MakeValid` database
715-
function. Requires GEOS 3.8.
715+
function.
716716

717717
.. method:: GEOSGeometry.normalize(clone=False)
718718

docs/ref/contrib/gis/install/geolibs.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ geospatial libraries:
1313
============================== ==================================== ================================ =======================================================
1414
Program Description Required Supported Versions
1515
============================== ==================================== ================================ =======================================================
16-
:ref:`GEOS <geos-overview>` Geometry Engine Open Source Yes 3.14, 3.13, 3.12, 3.11, 3.10, 3.9, 3.8
16+
:ref:`GEOS <geos-overview>` Geometry Engine Open Source Yes 3.14, 3.13, 3.12, 3.11, 3.10, 3.9
1717
`PROJ`_ Cartographic Projections library Yes (PostgreSQL and SQLite only) 9.x, 8.x, 7.x, 6.x
1818
:ref:`GDAL <gdal-overview>` Geospatial Data Abstraction Library Yes 3.11, 3.10, 3.9, 3.8, 3.7, 3.6, 3.5, 3.4, 3.3, 3.2, 3.1
1919
:ref:`GeoIP <geoip2-overview>` IP-based geolocation library No 2
@@ -26,7 +26,6 @@ totally fine with GeoDjango. Your mileage may vary.
2626

2727
..
2828
Libs release dates:
29-
GEOS 3.8.0 2019-10-10
3029
GEOS 3.9.0 2020-12-14
3130
GEOS 3.10.0 2021-10-20
3231
GEOS 3.11.0 2022-07-01

docs/releases/6.1.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ backends.
338338

339339
* Support for PostGIS 3.1 is removed.
340340

341+
* Support for GEOS 3.8 is removed.
342+
341343
:mod:`django.contrib.postgres`
342344
------------------------------
343345

tests/gis_tests/geos_tests/test_geos.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,11 +1295,9 @@ def test_emptyCollections(self):
12951295

12961296
# Testing __getitem__ (doesn't work on Point or Polygon)
12971297
if isinstance(g, Point):
1298-
# IndexError is not raised in GEOS 3.8.0.
1299-
if geos_version_tuple() != (3, 8, 0):
1300-
msg = "Invalid GEOS Geometry index:"
1301-
with self.assertRaisesMessage(IndexError, msg):
1302-
g.x
1298+
msg = "Invalid GEOS Geometry index:"
1299+
with self.assertRaisesMessage(IndexError, msg):
1300+
g.x
13031301
elif isinstance(g, Polygon):
13041302
lr = g.shell
13051303
self.assertEqual("LINEARRING EMPTY", lr.wkt)

0 commit comments

Comments
 (0)