--
Ticket URL: <https://code.djangoproject.com/ticket/26509>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by krisys):
I see that there is a `WKTWriter` in `django.contrib.gis.geos` which has
pretty much the same functionality as that of `precision_wkt()` (strings
are not accepted for precision in WKTWriter). I noticed this after I wrote
some tests and I started looking for an appropriate page to include
documentation. If this is indeed needed, I will go ahead and send a pull
request with documentation shortly. Also, we can consider enhancing the
`WKTWriter` to accept string precision.
--
Ticket URL: <https://code.djangoproject.com/ticket/26509#comment:1>
Comment (by claudep):
Oh yes, we added `trim` and `precision` capabilities to WKTWriter in
[c984e2bc15aa41de]. This mostly obsoletes the `precision_wkt` utility. I
don't think that the precision string capability is so much useful. I'd
vote now to drop `precision_wkt`.
While re-reading the code, I think it would be nice to allow dimension,
trimming and precision parameters to be provided to the WKTWriter
constructor: #26510.
--
Ticket URL: <https://code.djangoproject.com/ticket/26509#comment:2>
Comment (by krisys):
@claudep, Great. Thanks for confirming. Shall I create another ticket to
mark `precision_wkt` for deprecation or will this ticket suffice to take
the discussion forward?
--
Ticket URL: <https://code.djangoproject.com/ticket/26509#comment:3>
--
Ticket URL: <https://code.djangoproject.com/ticket/26509#comment:4>
Comment (by krisys):
I have submitted a
[https://github.com/django/django/pull/6467/commits/08f498fc6047e64abff5f0dc464a10777f4285a7
Pull Request] for the same.
--
Ticket URL: <https://code.djangoproject.com/ticket/26509#comment:5>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/26509#comment:6>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"e494b9ffb60215bb303e81049bd67e8aa36a504d" e494b9ff]:
{{{
#!CommitTicketReference repository=""
revision="e494b9ffb60215bb303e81049bd67e8aa36a504d"
Fixed #26509 -- Deprecated the contrib.gis.utils.precision_wkt() function.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26509#comment:7>
Comment (by Tim Graham <timograham@…>):
In [changeset:"169178265249949300df8288d8ebd048613f2205" 16917826]:
{{{
#!CommitTicketReference repository=""
revision="169178265249949300df8288d8ebd048613f2205"
Refs #26509 -- Removed contrib.gis.utils.precision_wkt() per deprecation
timeline.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26509#comment:8>