From 30e123ed351317b7527f632b3b7dc4e81e850449 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 3 Apr 2021 16:23:19 +0200 Subject: Fixed #32575 -- Added support for SpatiaLite 5. --- docs/ref/contrib/gis/db-api.txt | 12 ++++++------ docs/ref/contrib/gis/functions.txt | 9 +++++---- docs/ref/contrib/gis/install/geolibs.txt | 3 ++- 3 files changed, 13 insertions(+), 11 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/contrib/gis/db-api.txt b/docs/ref/contrib/gis/db-api.txt index 7921d53a8a..af2c1c04a0 100644 --- a/docs/ref/contrib/gis/db-api.txt +++ b/docs/ref/contrib/gis/db-api.txt @@ -344,9 +344,9 @@ functions are available on each spatial backend. .. currentmodule:: django.contrib.gis.db.models.functions -==================================== ======= ============== ============ =========== ========== +==================================== ======= ============== ============ =========== ================= Function PostGIS Oracle MariaDB MySQL SpatiaLite -==================================== ======= ============== ============ =========== ========== +==================================== ======= ============== ============ =========== ================= :class:`Area` X X X X X :class:`AsGeoJSON` X X X (≥ 10.2.4) X (≥ 5.7.5) X :class:`AsGML` X X X @@ -354,19 +354,19 @@ Function PostGIS Oracle MariaDB MySQL :class:`AsSVG` X X :class:`AsWKB` X X X X X :class:`AsWKT` X X X X X -:class:`Azimuth` X X (LWGEOM) +:class:`Azimuth` X X (LWGEOM/RTTOPO) :class:`BoundingCircle` X X :class:`Centroid` X X X X X :class:`Difference` X X X X X :class:`Distance` X X X X X :class:`Envelope` X X X X X :class:`ForcePolygonCW` X X -:class:`GeoHash` X X (≥ 5.7.5) X (LWGEOM) +:class:`GeoHash` X X (≥ 5.7.5) X (LWGEOM/RTTOPO) :class:`Intersection` X X X X X :class:`IsValid` X X X (≥ 5.7.5) X :class:`Length` X X X X X :class:`LineLocatePoint` X X -:class:`MakeValid` X X (LWGEOM) +:class:`MakeValid` X X (LWGEOM/RTTOPO) :class:`MemSize` X :class:`NumGeometries` X X X X X :class:`NumPoints` X X X X X @@ -379,7 +379,7 @@ Function PostGIS Oracle MariaDB MySQL :class:`Transform` X X X :class:`Translate` X X :class:`Union` X X X X X -==================================== ======= ============== ============ =========== ========== +==================================== ======= ============== ============ =========== ================= Aggregate Functions ------------------- diff --git a/docs/ref/contrib/gis/functions.txt b/docs/ref/contrib/gis/functions.txt index cf2c3217e4..82aaf1196d 100644 --- a/docs/ref/contrib/gis/functions.txt +++ b/docs/ref/contrib/gis/functions.txt @@ -44,7 +44,7 @@ Oracle, `PostGIS `__, SpatiaLite Accepts a single geographic field or expression and returns the area of the field as an :class:`~django.contrib.gis.measure.Area` measure. -MySQL and SpatiaLite without LWGEOM don't support area calculations on +MySQL and SpatiaLite without LWGEOM/RTTOPO don't support area calculations on geographic SRSes. ``AsGeoJSON`` @@ -208,7 +208,7 @@ __ https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry .. class:: Azimuth(point_a, point_b, **extra) *Availability*: `PostGIS `__, -SpatiaLite (LWGEOM) +SpatiaLite (LWGEOM/RTTOPO) Returns the azimuth in radians of the segment defined by the given point geometries, or ``None`` if the two points are coincident. The azimuth is angle @@ -334,7 +334,8 @@ are returned unchanged. *Availability*: `MySQL `__ (≥ 5.7.5), -`PostGIS `__, SpatiaLite (LWGEOM) +`PostGIS `__, SpatiaLite +(LWGEOM/RTTOPO) Accepts a single geographic field or expression and returns a `GeoHash`__ representation of the geometry. @@ -416,7 +417,7 @@ Returns a float between 0 and 1 representing the location of the closest point o .. class:: MakeValid(expr) *Availability*: `PostGIS `__, -SpatiaLite (LWGEOM) +SpatiaLite (LWGEOM/RTTOPO) Accepts a geographic field or expression and attempts to convert the value into a valid geometry without losing any of the input vertices. Geometries that are diff --git a/docs/ref/contrib/gis/install/geolibs.txt b/docs/ref/contrib/gis/install/geolibs.txt index 058653c7d2..d24caec57f 100644 --- a/docs/ref/contrib/gis/install/geolibs.txt +++ b/docs/ref/contrib/gis/install/geolibs.txt @@ -13,7 +13,7 @@ Program Description Required :doc:`GDAL <../gdal>` Geospatial Data Abstraction Library Yes 3.2, 3.1, 3.0, 2.4, 2.3, 2.2, 2.1 :doc:`GeoIP <../geoip2>` IP-based geolocation library No 2 `PostGIS`__ Spatial extensions for PostgreSQL Yes (PostgreSQL only) 3.0, 2.5, 2.4 -`SpatiaLite`__ Spatial extensions for SQLite Yes (SQLite only) 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 @@ -36,6 +36,7 @@ totally fine with GeoDjango. Your mileage may vary. PostGIS 2.5.0 2018-09-23 PostGIS 3.0.0 2019-10-20 SpatiaLite 4.3.0 2015-09-07 + SpatiaLite 5.0.0 2020-08-23 .. note:: -- cgit v1.3