{{{
from django.contrib.gis.geos import GEOSGeometry
linestring = GEOSGeometry('LINESTRING(0 1, 1 2)', srid=4326)
assert linestring.srid == 4326
linestring.reverse()
assert linestring.srid == 4326, 'SRID data is lost!'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30552>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* version: 2.1 => master
* stage: Unreviewed => Accepted
Comment:
Thanks for this report.
Reproduced at c498f088c584ec3aff97409fdc11b39b28240de9.
--
Ticket URL: <https://code.djangoproject.com/ticket/30552#comment:1>
* Attachment "30552.diff" added.
Simple test.
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/11599 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/30552#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"3c6d32e0b233bc44eb4533f81819353036ae35e4" 3c6d32e]:
{{{
#!CommitTicketReference repository=""
revision="3c6d32e0b233bc44eb4533f81819353036ae35e4"
Fixed #30552 -- Fixed loss of SRID when calling reverse() on
LineString/Point.
Thanks Mariusz Felisiak for contributing the Point part.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30552#comment:3>