#30552: SRID data on GEOSGeometry is lost after calling `reverse()` method
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  nobody
  ssrebelious                        |
                   Type:  Bug        |         Status:  new
              Component:  GIS        |        Version:  2.1
               Severity:  Normal     |       Keywords:  SRID, geometry, GIS
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Following code reproduces the bug. Haven't tested if it persists on Django
 2.2.

 {{{
 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.

-- 
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/054.4dfb85eb81589259acb530be362a1e9f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to