Kaydet (Commit) 395af23a authored tarafından Sergey Fedoseev's avatar Sergey Fedoseev Kaydeden (comit) Tim Graham

Refs #25659 -- Added missing docs for Difference/Intersection/SymDifference functions.

Complements 7127eb28.
üst 83a710b8
...@@ -186,12 +186,16 @@ Difference ...@@ -186,12 +186,16 @@ Difference
.. class:: Difference(expr1, expr2, **extra) .. class:: Difference(expr1, expr2, **extra)
*Availability*: PostGIS, Oracle, SpatiaLite *Availability*: MySQL (≥ 5.6.1), PostGIS, Oracle, SpatiaLite
Accepts two geographic fields or expressions and returns the geometric Accepts two geographic fields or expressions and returns the geometric
difference, that is the part of geometry A that does not intersect with difference, that is the part of geometry A that does not intersect with
geometry B. geometry B.
.. versionchanged:: 1.10
MySQL support was added.
Distance Distance
-------- --------
...@@ -274,11 +278,15 @@ Intersection ...@@ -274,11 +278,15 @@ Intersection
.. class:: Intersection(expr1, expr2, **extra) .. class:: Intersection(expr1, expr2, **extra)
*Availability*: PostGIS, Oracle, SpatiaLite *Availability*: MySQL (≥ 5.6.1), PostGIS, Oracle, SpatiaLite
Accepts two geographic fields or expressions and returns the geometric Accepts two geographic fields or expressions and returns the geometric
intersection between them. intersection between them.
.. versionchanged:: 1.10
MySQL support was added.
Length Length
------ ------
...@@ -395,12 +403,16 @@ SymDifference ...@@ -395,12 +403,16 @@ SymDifference
.. class:: SymDifference(expr1, expr2, **extra) .. class:: SymDifference(expr1, expr2, **extra)
*Availability*: PostGIS, Oracle, SpatiaLite *Availability*: MySQL (≥ 5.6.1), PostGIS, Oracle, SpatiaLite
Accepts two geographic fields or expressions and returns the geometric Accepts two geographic fields or expressions and returns the geometric
symmetric difference (union without the intersection) between the given symmetric difference (union without the intersection) between the given
parameters. parameters.
.. versionchanged:: 1.10
MySQL support was added.
Transform Transform
--------- ---------
......
...@@ -82,6 +82,12 @@ Minor features ...@@ -82,6 +82,12 @@ Minor features
* Added support for the :class:`~django.contrib.gis.db.models.MakeLine` * Added support for the :class:`~django.contrib.gis.db.models.MakeLine`
aggregate on SpatiaLite. aggregate on SpatiaLite.
* Added support for the
:class:`~django.contrib.gis.db.models.functions.Difference`,
:class:`~django.contrib.gis.db.models.functions.Intersection`, and
:class:`~django.contrib.gis.db.models.functions.SymDifference`
functions on MySQL.
:mod:`django.contrib.messages` :mod:`django.contrib.messages`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment