mirror of https://github.com/django/django.git
Backport of 075f13e44f
master
This commit is contained in:
parent
04a2fd5e00
commit
37b28c9d7a
|
@ -314,7 +314,8 @@ SpatiaLite ``Intersects(poly, geom)``
|
||||||
|
|
||||||
.. versionadded:: 1.10
|
.. versionadded:: 1.10
|
||||||
|
|
||||||
*Availability*: `PostGIS <https://postgis.net/docs/ST_IsValid.html>`__
|
*Availability*: `PostGIS <https://postgis.net/docs/ST_IsValid.html>`__,
|
||||||
|
Oracle, SpatiaLite
|
||||||
|
|
||||||
Tests if the geometry is valid.
|
Tests if the geometry is valid.
|
||||||
|
|
||||||
|
@ -322,9 +323,16 @@ Example::
|
||||||
|
|
||||||
Zipcode.objects.filter(poly__isvalid=True)
|
Zipcode.objects.filter(poly__isvalid=True)
|
||||||
|
|
||||||
PostGIS equivalent::
|
=================== ================================================================
|
||||||
|
Backend SQL Equivalent
|
||||||
|
=================== ================================================================
|
||||||
|
PostGIS, SpatiaLite ``ST_IsValid(poly)``
|
||||||
|
Oracle ``SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(poly, 0.05) = 'TRUE'``
|
||||||
|
=================== ================================================================
|
||||||
|
|
||||||
SELECT ... WHERE ST_IsValid(poly)
|
.. versionchanged:: 1.11
|
||||||
|
|
||||||
|
Oracle and SpatiaLite support was added.
|
||||||
|
|
||||||
.. fieldlookup:: overlaps
|
.. fieldlookup:: overlaps
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue