Commit 395af23a authored by Sergey Fedoseev's avatar Sergey Fedoseev Committed by Tim Graham
Browse files

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

Complements 7127eb28.
parent 83a710b8
Loading
Loading
Loading
Loading
+15 −3
Original line number Diff line number Diff line
@@ -186,12 +186,16 @@ Difference

.. 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
difference, that is the part of geometry A that does not intersect with
geometry B.

.. versionchanged:: 1.10

    MySQL support was added.

Distance
--------

@@ -274,11 +278,15 @@ Intersection

.. 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
intersection between them.

.. versionchanged:: 1.10

    MySQL support was added.

Length
------

@@ -395,12 +403,16 @@ SymDifference

.. 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
symmetric difference (union without the intersection) between the given
parameters.

.. versionchanged:: 1.10

    MySQL support was added.

Transform
---------

+6 −0
Original line number Diff line number Diff line
@@ -82,6 +82,12 @@ Minor features
* Added support for the :class:`~django.contrib.gis.db.models.MakeLine`
  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`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^