Opened 6 weeks ago

Last modified 6 weeks ago

#30552 new Bug

GEOSGeometry.reverse() loses SRID.

Reported by: Yury Ryabov Owned by: nobody
Component: GIS Version: master
Severity: Normal Keywords: SRID, geometry, GIS
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


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
assert linestring.srid == 4326, 'SRID data is lost!'

Attachments (1)

30552.diff (916 bytes) - added by felixxm 6 weeks ago.
Simple test.

Download all attachments as: .zip

Change History (2)

comment:1 Changed 6 weeks ago by felixxm

Summary: SRID data on GEOSGeometry is lost after calling `reverse()` methodGEOSGeometry.reverse() loses SRID.
Triage Stage: UnreviewedAccepted
Version: 2.1master

Thanks for this report.

Reproduced at c498f088c584ec3aff97409fdc11b39b28240de9.

Changed 6 weeks ago by felixxm

Attachment: 30552.diff added

Simple test.

Note: See TracTickets for help on using tickets.
Back to Top