summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2019-11-16 20:22:01 +0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-11-18 15:32:44 +0100
commitf95b59a1b3c7b24b4226bb81fc45248595b32263 (patch)
treefe5692fc00a651d70b83531dbae97975dc52d5dc /docs
parent7f0946298ea2e2b70a1981a3898cf4faf052ef63 (diff)
Fixed #30994 -- Added Oracle support for AsGeoJSON GIS function.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/gis/db-api.txt2
-rw-r--r--docs/ref/contrib/gis/functions.txt14
-rw-r--r--docs/releases/3.1.txt3
3 files changed, 14 insertions, 5 deletions
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
<https://dev.mysql.com/doc/refman/en/spatial-geojson-functions.html#function_st-asgeojson>`__ (≥ 5.7.5),
-`PostGIS <https://postgis.net/docs/ST_AsGeoJSON.html>`__, SpatiaLite
+Oracle, `PostGIS <https://postgis.net/docs/ST_AsGeoJSON.html>`__, SpatiaLite
Accepts a single geographic field or expression and returns a `GeoJSON
<http://geojson.org/>`_ 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`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~