#27672: Trouble saving specificly shaped GeometryCollection to spatialite
backend
------------------------------------+--------------------------------------
Reporter: Tim Sheerman-Chase | Owner: nobody
Type: Bug | Status: new
Component: GIS | Version: 1.10
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
------------------------------------+--------------------------------------
Comment (by Claude Paroz):
WKT formatting is done by GEOS (Django's calling it in the
`GEOSGeometry.wkt` property).
It looks like this is also commanded by the trim property (see also
#25951).
{{{
>>> from django.contrib.gis.geos import Point
>>> p1 = Point(0.0000000001, 2.34598712386)
>>> p1.wkt
'POINT (1e-10 2.34598712386)'
>>> from django.contrib.gis.geos.prototypes.io import WKTWriter
>>> writer = WKTWriter(trim=False)
>>> writer.write(p1)
'POINT (0.0000000001000000 2.3459871238600001)'
}}}
However, if GEOS permits it, I'd say the backend should also support it.
So I would classify this as "not Django" bug considering that the
Spatialite commit you mention should fix this.
--
Ticket URL: <https://code.djangoproject.com/ticket/27672#comment:7>
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/063.08813ed5ee45ee32bb26697229c3484f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.