Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
c1c1ac20
Kaydet (Commit)
c1c1ac20
authored
Haz 22, 2018
tarafından
Sergey Fedoseev
Kaydeden (comit)
Tim Graham
Haz 22, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[2.1.x] Added description, example, and SQL equivalents for equals and same_as GIS lookups.
Backport of
9af83a62
from master
üst
714612a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
geoquerysets.txt
docs/ref/contrib/gis/geoquerysets.txt
+32
-0
No files found.
docs/ref/contrib/gis/geoquerysets.txt
Dosyayı görüntüle @
c1c1ac20
...
...
@@ -269,6 +269,21 @@ SpatiaLite ``Disjoint(poly, geom)``
*Availability*: `PostGIS <https://postgis.net/docs/ST_Equals.html>`__,
Oracle, MySQL, SpatiaLite, PGRaster (Conversion)
Tests if the geometry field is spatially equal to the lookup geometry.
Example::
Zipcode.objects.filter(poly__equals=geom)
========== =================================================
Backend SQL Equivalent
========== =================================================
PostGIS ``ST_Equals(poly, geom)``
Oracle ``SDO_EQUAL(poly, geom)``
MySQL ``MBREquals(poly, geom)``
SpatiaLite ``Equals(poly, geom)``
========== =================================================
.. fieldlookup:: exact
.. fieldlookup:: same_as
...
...
@@ -278,6 +293,23 @@ Oracle, MySQL, SpatiaLite, PGRaster (Conversion)
*Availability*: `PostGIS <https://postgis.net/docs/ST_Geometry_Same.html>`__,
Oracle, MySQL, SpatiaLite, PGRaster (Bilateral)
Tests if the geometry field is "equal" to the lookup geometry. On Oracle and
SpatiaLite it tests spatial equality, while on MySQL and PostGIS it tests
equality of bounding boxes.
Example::
Zipcode.objects.filter(poly=geom)
========== =================================================
Backend SQL Equivalent
========== =================================================
PostGIS ``poly ~= geom``
Oracle ``SDO_EQUAL(poly, geom)``
MySQL ``MBREquals(poly, geom)``
SpatiaLite ``Equals(poly, geom)``
========== =================================================
.. fieldlookup:: intersects
``intersects``
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment