#25342: Altitude of Point object for equality check
-------------------------------------+-------------------------------------
Reporter: bkowshik | Owner: nobody
Type: Bug | Status: new
Component: GIS | Version: 1.7
Severity: Normal | Resolution:
Keywords: geodjango, equality | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by bkowshik):
I began by checking if the `Point` object had the magic method `__eq__`.
https://github.com/django/django/blob/master/django/contrib/gis/geos/point.py#L10
The `Point` objects inherits `GEOSGeometry` which in-turn has the magic
method `__eq__`.
https://github.com/django/django/blob/master/django/contrib/gis/geos/geometry.py#L166
This in-turn calls `equals_exact` of `GEOSGeometry`.
https://github.com/django/django/blob/master/django/contrib/gis/geos/geometry.py#L317
This calls `geos_equalsexact` on the page below.
https://github.com/django/django/blob/8047e3666b0b50bb04e6f16c2a4fb21ddfd5713f/django/contrib/gis/geos/prototypes/predicates.py#L36
I don't understand what happens after this.
--
Ticket URL: <https://code.djangoproject.com/ticket/25342#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.4db6b4a618d840b1387a17e645c81503%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.