#23022: Geodjango transform introduces large errors
----------------------------------+--------------------------------------
Reporter: gabriel.rosser@… | Owner: nobody
Type: Bug | Status: new
Component: GIS | Version: 1.6
Severity: Normal | Resolution:
Keywords: gis | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
----------------------------------+--------------------------------------
Changes (by manologab):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
I was unable to reproduce the problem using your example in stackexchange.
{{{
m = MyGeoClass(point=geos.Point([527860, 184660], srid=27700))
m.save()
m = MyGeoClass.objects.get(pk=m.id)
self.stdout.write("Point Created, srid:{}, coords:
{!r}".format(m.point.srid, m.point.coords))
m.point.transform(4326)
m.save()
m = MyGeoClass.objects.get(pk = m.id)
self.stdout.write("Point Changed, srid:{}, coords:
{!r}".format(m.point.srid, m.point.coords))
}}}
Result:
{{{
Point Created, srid:27700, coords: (527860.0, 184660.0)
Point Changed, srid:27700, coords: (527860.0008806133, 184659.99951259216)
}}}
Maybe the problem is in the software versions? I have:
Django 1.6.5
PostGIS 2.1.2
--
Ticket URL: <https://code.djangoproject.com/ticket/23022#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/082.d3d63ebc57d6954e9859b6af6d9c35db%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.