mirror of
https://github.com/django/django.git
synced 2025-01-03 06:55:47 +00:00
Fixed #34684 -- Dropped support for GDAL 2.2 and 2.3.
This commit is contained in:
parent
7af455a402
commit
6a523500af
@ -30,8 +30,6 @@ elif os.name == "nt":
|
|||||||
"gdal301",
|
"gdal301",
|
||||||
"gdal300",
|
"gdal300",
|
||||||
"gdal204",
|
"gdal204",
|
||||||
"gdal203",
|
|
||||||
"gdal202",
|
|
||||||
]
|
]
|
||||||
elif os.name == "posix":
|
elif os.name == "posix":
|
||||||
# *NIX library names.
|
# *NIX library names.
|
||||||
@ -46,8 +44,6 @@ elif os.name == "posix":
|
|||||||
"gdal3.1.0",
|
"gdal3.1.0",
|
||||||
"gdal3.0.0",
|
"gdal3.0.0",
|
||||||
"gdal2.4.0",
|
"gdal2.4.0",
|
||||||
"gdal2.3.0",
|
|
||||||
"gdal2.2.0",
|
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
raise ImproperlyConfigured('GDAL is unsupported on OS "%s".' % os.name)
|
raise ImproperlyConfigured('GDAL is unsupported on OS "%s".' % os.name)
|
||||||
|
@ -5,16 +5,16 @@ Installing Geospatial libraries
|
|||||||
GeoDjango uses and/or provides interfaces for the following open source
|
GeoDjango uses and/or provides interfaces for the following open source
|
||||||
geospatial libraries:
|
geospatial libraries:
|
||||||
|
|
||||||
======================== ==================================== ================================ ================================================
|
======================== ==================================== ================================ ======================================
|
||||||
Program Description Required Supported Versions
|
Program Description Required Supported Versions
|
||||||
======================== ==================================== ================================ ================================================
|
======================== ==================================== ================================ ======================================
|
||||||
:doc:`GEOS <../geos>` Geometry Engine Open Source Yes 3.11, 3.10, 3.9, 3.8, 3.7, 3.6
|
:doc:`GEOS <../geos>` Geometry Engine Open Source Yes 3.11, 3.10, 3.9, 3.8, 3.7, 3.6
|
||||||
`PROJ`_ Cartographic Projections library Yes (PostgreSQL and SQLite only) 9.x, 8.x, 7.x, 6.x, 5.x
|
`PROJ`_ Cartographic Projections library Yes (PostgreSQL and SQLite only) 9.x, 8.x, 7.x, 6.x, 5.x
|
||||||
:doc:`GDAL <../gdal>` Geospatial Data Abstraction Library Yes 3.6, 3.5, 3.4, 3.3, 3.2, 3.1, 3.0, 2.4, 2.3, 2.2
|
:doc:`GDAL <../gdal>` Geospatial Data Abstraction Library Yes 3.6, 3.5, 3.4, 3.3, 3.2, 3.1, 3.0, 2.4
|
||||||
:doc:`GeoIP <../geoip2>` IP-based geolocation library No 2
|
:doc:`GeoIP <../geoip2>` IP-based geolocation library No 2
|
||||||
`PostGIS`__ Spatial extensions for PostgreSQL Yes (PostgreSQL only) 3.3, 3.2, 3.1, 3.0, 2.5
|
`PostGIS`__ Spatial extensions for PostgreSQL Yes (PostgreSQL only) 3.3, 3.2, 3.1, 3.0, 2.5
|
||||||
`SpatiaLite`__ Spatial extensions for SQLite Yes (SQLite only) 5.0, 4.3
|
`SpatiaLite`__ Spatial extensions for SQLite Yes (SQLite only) 5.0, 4.3
|
||||||
======================== ==================================== ================================ ================================================
|
======================== ==================================== ================================ ======================================
|
||||||
|
|
||||||
Note that older or more recent versions of these libraries *may* also work
|
Note that older or more recent versions of these libraries *may* also work
|
||||||
totally fine with GeoDjango. Your mileage may vary.
|
totally fine with GeoDjango. Your mileage may vary.
|
||||||
@ -27,8 +27,6 @@ totally fine with GeoDjango. Your mileage may vary.
|
|||||||
GEOS 3.9.0 2020-12-14
|
GEOS 3.9.0 2020-12-14
|
||||||
GEOS 3.10.0 2021-10-20
|
GEOS 3.10.0 2021-10-20
|
||||||
GEOS 3.11.0 2022-07-01
|
GEOS 3.11.0 2022-07-01
|
||||||
GDAL 2.2.0 2017-05
|
|
||||||
GDAL 2.3.0 2018-05
|
|
||||||
GDAL 2.4.0 2018-12
|
GDAL 2.4.0 2018-12
|
||||||
GDAL 3.0.0 2019-05
|
GDAL 3.0.0 2019-05
|
||||||
GDAL 3.1.0 2020-05-07
|
GDAL 3.1.0 2020-05-07
|
||||||
|
@ -417,6 +417,11 @@ backends.
|
|||||||
``False`` if the database doesn't support the ``DEFAULT`` keyword in bulk
|
``False`` if the database doesn't support the ``DEFAULT`` keyword in bulk
|
||||||
``INSERT`` queries.
|
``INSERT`` queries.
|
||||||
|
|
||||||
|
:mod:`django.contrib.gis`
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
* Support for GDAL 2.2 and 2.3 is removed.
|
||||||
|
|
||||||
Using ``create_defaults__exact`` may now be required with ``QuerySet.update_or_create()``
|
Using ``create_defaults__exact`` may now be required with ``QuerySet.update_or_create()``
|
||||||
-----------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -89,8 +89,7 @@ class OGRInspectTest(SimpleTestCase):
|
|||||||
# Same test with a 25D-type geometry field
|
# Same test with a 25D-type geometry field
|
||||||
shp_file = os.path.join(TEST_DATA, "gas_lines", "gas_leitung.shp")
|
shp_file = os.path.join(TEST_DATA, "gas_lines", "gas_leitung.shp")
|
||||||
model_def = ogrinspect(shp_file, "MyModel", multi_geom=True)
|
model_def = ogrinspect(shp_file, "MyModel", multi_geom=True)
|
||||||
srid = "-1" if GDAL_VERSION < (2, 3) else "31253"
|
self.assertIn("geom = models.MultiLineStringField(srid=31253)", model_def)
|
||||||
self.assertIn("geom = models.MultiLineStringField(srid=%s)" % srid, model_def)
|
|
||||||
|
|
||||||
def test_date_field(self):
|
def test_date_field(self):
|
||||||
shp_file = os.path.join(TEST_DATA, "cities", "cities.shp")
|
shp_file = os.path.join(TEST_DATA, "cities", "cities.shp")
|
||||||
|
Loading…
Reference in New Issue
Block a user