1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #30994 -- Added Oracle support for AsGeoJSON GIS function.

This commit is contained in:
Sergey Fedoseev
2019-11-16 20:22:01 +05:00
committed by Mariusz Felisiak
parent 7f0946298e
commit f95b59a1b3
6 changed files with 34 additions and 15 deletions

View File

@@ -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

View File

@@ -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``
=========