comparing GEOSGeometry with non-canonical WKT string return False
In [2]: from django.contrib.gis.geos import GEOSGeometry
In [3]: GEOSGeometry('POINT (0 0)') == 'POINT (0 0)'
Out[3]: True
In [4]: GEOSGeometry('POINT (0 0)') == GEOSGeometry('POINT (0.0 0.0)')
Out[4]: True
In [5]: GEOSGeometry('POINT (0 0)') == 'POINT (0.0 0.0)'
Out[5]: False
Change History
(6)
Owner: |
changed from nobody to Sergey Fedoseev
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Triage Stage: |
Unreviewed → Accepted
|
Patch needs improvement: |
unset
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
PR