From f95b59a1b3c7b24b4226bb81fc45248595b32263 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Sat, 16 Nov 2019 20:22:01 +0500 Subject: Fixed #30994 -- Added Oracle support for AsGeoJSON GIS function. --- docs/ref/contrib/gis/db-api.txt | 2 +- docs/ref/contrib/gis/functions.txt | 14 ++++++++++---- docs/releases/3.1.txt | 3 +++ 3 files changed, 14 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/ref/contrib/gis/db-api.txt b/docs/ref/contrib/gis/db-api.txt index e7bd672914..8010f6dcba 100644 --- a/docs/ref/contrib/gis/db-api.txt +++ b/docs/ref/contrib/gis/db-api.txt @@ -360,7 +360,7 @@ functions are available on each spatial backend. Function PostGIS Oracle MariaDB MySQL SpatiaLite ==================================== ======= ============== ============ =========== ========== :class:`Area` X X X X X -:class:`AsGeoJSON` X X (≥ 10.2.4) X (≥ 5.7.5) X +:class:`AsGeoJSON` X X X (≥ 10.2.4) X (≥ 5.7.5) X :class:`AsGML` X X X :class:`AsKML` X X :class:`AsSVG` X X diff --git a/docs/ref/contrib/gis/functions.txt b/docs/ref/contrib/gis/functions.txt index 7736323433..a0403faf9b 100644 --- a/docs/ref/contrib/gis/functions.txt +++ b/docs/ref/contrib/gis/functions.txt @@ -54,7 +54,7 @@ geographic SRSes. *Availability*: MariaDB (≥ 10.2.4), `MySQL `__ (≥ 5.7.5), -`PostGIS `__, SpatiaLite +Oracle, `PostGIS `__, SpatiaLite Accepts a single geographic field or expression and returns a `GeoJSON `_ representation of the geometry. Note that the result is @@ -70,17 +70,23 @@ Example:: Keyword Argument Description ===================== ===================================================== ``bbox`` Set this to ``True`` if you want the bounding box - to be included in the returned GeoJSON. + to be included in the returned GeoJSON. Ignored on + Oracle. ``crs`` Set this to ``True`` if you want the coordinate reference system to be included in the returned - GeoJSON. Ignored on MySQL. + GeoJSON. Ignored on MySQL and Oracle. ``precision`` It may be used to specify the number of significant digits for the coordinates in the GeoJSON - representation -- the default value is 8. + representation -- the default value is 8. Ignored on + Oracle. ===================== ===================================================== +.. versionchanged:: 3.1 + + Oracle support was added. + ``AsGML`` ========= diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt index 00d620b045..27255d16ae 100644 --- a/docs/releases/3.1.txt +++ b/docs/releases/3.1.txt @@ -63,6 +63,9 @@ Minor features * Added the :attr:`.LinearRing.is_counterclockwise` property. +* :class:`~django.contrib.gis.db.models.functions.AsGeoJSON` is now supported + on Oracle. + :mod:`django.contrib.messages` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3