diff --git a/docs/ref/contrib/gis/geoquerysets.txt b/docs/ref/contrib/gis/geoquerysets.txt index 29856e10ab4..12c7460b97c 100644 --- a/docs/ref/contrib/gis/geoquerysets.txt +++ b/docs/ref/contrib/gis/geoquerysets.txt @@ -314,7 +314,8 @@ SpatiaLite ``Intersects(poly, geom)`` .. versionadded:: 1.10 -*Availability*: `PostGIS `__ +*Availability*: `PostGIS `__, +Oracle, SpatiaLite Tests if the geometry is valid. @@ -322,9 +323,16 @@ Example:: 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