#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
-------------------------------------+-------------------------------------
Changes (by bkowshik):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old description:

> Checking equality of two django.contrib.gis.geos.Point objects does not
> take into consideration the altitude of the point.
>
> {{{#!python
>     from django.contrib.gis.geos import Point
>
>     p1 = Point(x=1, y=1, z=1, srid=4326)
>     print p1 == p1  # True
>
>     p2 = Point(x=1.1, y=1, z=1, srid=4326)
>     print p1 == p2  # False
>
>     p3 = Point(x=1, y=1, z=2, srid=4326)
>     print p1 == p3  # True. Is this a bug?
> }}}

New description:

 Checking equality of two django.contrib.gis.geos.Point objects does not
 take into consideration the altitude of the point.

 {{{#!python
 from django.contrib.gis.geos import Point

 p1 = Point(x=1, y=1, z=1, srid=4326)
 print p1 == p1  # True

 p2 = Point(x=1.1, y=1, z=1, srid=4326)
 print p1 == p2  # False

 p3 = Point(x=1, y=1, z=2, srid=4326)
 print p1 == p3  # True. Is this a bug?
 }}}

--

--
Ticket URL: <https://code.djangoproject.com/ticket/25342#comment:1>
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.c582d6c0484fc41b6e7f8f857d2a90a8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to