[Django] #25951: use trimmed EWKT for GEOSGeometry.__str__

5 views
Skip to first unread message

Django

unread,
Dec 18, 2015, 2:49:51 PM12/18/15
to django-...@googlegroups.com
#25951: use trimmed EWKT for GEOSGeometry.__str__
--------------------------------------+--------------------
Reporter: sir-sigurd | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: GIS | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
{{{
In [14]: print Point(1, 1)
POINT (1.0000000000000000 1.0000000000000000)
}}}
These trailing zeros are quite annoying so I think we could use trimmed
EWKT for `__str__`.
Not sure if we could/should use trimming for `ewkt` and `wkt` properties.

--
Ticket URL: <https://code.djangoproject.com/ticket/25951>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 18, 2015, 2:49:56 PM12/18/15
to django-...@googlegroups.com
#25951: use trimmed EWKT for GEOSGeometry.__str__
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | Owner: sir-
Type: | sigurd
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by sir-sigurd):

* owner: nobody => sir-sigurd
* needs_docs: => 0
* status: new => assigned
* needs_tests: => 0
* needs_better_patch: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/25951#comment:1>

Django

unread,
Dec 18, 2015, 6:08:27 PM12/18/15
to django-...@googlegroups.com
#25951: use trimmed EWKT for GEOSGeometry.__str__
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | Owner: sir-
Type: | sigurd
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/25951#comment:2>

Django

unread,
Apr 16, 2016, 1:52:46 PM4/16/16
to django-...@googlegroups.com
#25951: use trimmed EWKT for GEOSGeometry.__str__
--------------------------------------+------------------------------------
Reporter: sir-sigurd | Owner: claudep
Type: Cleanup/optimization | Status: assigned
Component: GIS | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by claudep):

* owner: sir-sigurd => claudep


--
Ticket URL: <https://code.djangoproject.com/ticket/25951#comment:3>

Django

unread,
Apr 16, 2016, 2:15:43 PM4/16/16
to django-...@googlegroups.com
#25951: use trimmed EWKT for GEOSGeometry.__str__
--------------------------------------+------------------------------------
Reporter: sir-sigurd | Owner: claudep
Type: Cleanup/optimization | Status: assigned
Component: GIS | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by claudep):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/6466 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/25951#comment:4>

Django

unread,
Apr 16, 2016, 3:47:34 PM4/16/16
to django-...@googlegroups.com
#25951: use trimmed EWKT for GEOSGeometry.__str__
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | Owner: claudep
Type: | Status: assigned
Cleanup/optimization |
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/25951#comment:5>

Django

unread,
Apr 17, 2016, 9:32:17 AM4/17/16
to django-...@googlegroups.com
#25951: use trimmed EWKT for GEOSGeometry.__str__
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | Owner: claudep
Type: | Status: closed
Cleanup/optimization |
Component: GIS | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz <claude@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"9686c888d6a0632e37b2fc70069128dc940c4b38" 9686c88]:
{{{
#!CommitTicketReference repository=""
revision="9686c888d6a0632e37b2fc70069128dc940c4b38"
Fixed #25951 -- Trimmed default representation of GEOSGeometry

Thanks Sergey Fedoseev for the report.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25951#comment:6>

Reply all
Reply to author
Forward
0 new messages