mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #26967 -- Added MySQL support for AsGeoJSON, GeoHash, IsValid functions, and isvalid lookup.
This commit is contained in:
parent
9a9e228321
commit
0a13b249e2
8 changed files with 68 additions and 30 deletions
|
@ -306,8 +306,8 @@ SpatiaLite ``Intersects(poly, geom)``
|
|||
``isvalid``
|
||||
-----------
|
||||
|
||||
*Availability*: `PostGIS <https://postgis.net/docs/ST_IsValid.html>`__,
|
||||
Oracle, SpatiaLite
|
||||
*Availability*: MySQL (≥ 5.7.5), `PostGIS
|
||||
<https://postgis.net/docs/ST_IsValid.html>`__, Oracle, SpatiaLite
|
||||
|
||||
Tests if the geometry is valid.
|
||||
|
||||
|
@ -315,17 +315,21 @@ Example::
|
|||
|
||||
Zipcode.objects.filter(poly__isvalid=True)
|
||||
|
||||
=================== ================================================================
|
||||
Backend SQL Equivalent
|
||||
=================== ================================================================
|
||||
PostGIS, SpatiaLite ``ST_IsValid(poly)``
|
||||
Oracle ``SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(poly, 0.05) = 'TRUE'``
|
||||
=================== ================================================================
|
||||
========================== ================================================================
|
||||
Backend SQL Equivalent
|
||||
========================== ================================================================
|
||||
MySQL, PostGIS, SpatiaLite ``ST_IsValid(poly)``
|
||||
Oracle ``SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(poly, 0.05) = 'TRUE'``
|
||||
========================== ================================================================
|
||||
|
||||
.. versionchanged:: 1.11
|
||||
|
||||
Oracle and SpatiaLite support was added.
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
|
||||
MySQL support was added.
|
||||
|
||||
.. fieldlookup:: overlaps
|
||||
|
||||
``overlaps``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue