description of `GEOSGeometry.contains` is incorrect
Documentation says that GEOSGeometry.contains
Returns True if GEOSGeometry.within() is False.
this is incorrect:
In [23]: pol1 = GEOSGeometry('POLYGON((0 0, 0 4, 4 4, 4 0, 0 0))')
In [24]: pol2 = GEOSGeometry('POLYGON((6 6, 6 9, 9 9, 9 6, 6 6))')
In [25]: pol1.within(pol2)
Out[25]: False
In [26]: pol1.contains(pol2)
Out[26]: False
Change History
(6)
Owner: |
changed from nobody to Sergey Fedoseev
|
Status: |
new → assigned
|
Triage Stage: |
Unreviewed → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
PR -- https://github.com/django/django/pull/5622