#30645: GEOSGeometry incorrectly transforms geometry.
-------------------------------------+-------------------------------------
Reporter: Yury Ryabov | Owner: nobody
Type: Bug | Status: closed
Component: GIS | Version: master
Severity: Normal | Resolution:
| worksforme
Keywords: SRID, geometry, | Triage Stage:
GIS, GEOS | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sergey Fedoseev):
* cc: Sergey Fedoseev (added)
Comment:
This is caused by breaking changes in GDAL 3:
https://github.com/OSGeo/gdal/blob/f6a8ae04245e00927e5d1d70ea97c32b83923614/gdal/MIGRATION_GUIDE.TXT#L7-L12
{{{
In [1]: from osgeo import gdal, ogr
...: from osgeo.osr import SpatialReference, CoordinateTransformation
...:
...: g = ogr.Geometry(wkt='POINT (37 51)')
...:
...: source = SpatialReference()
...: source.ImportFromEPSG(4326)
...:
...: dest = SpatialReference()
...: dest.ImportFromEPSG(3857)
...:
...: g.Transform(CoordinateTransformation(source, dest))
...: print(g)
...:
...: source.SetAxisMappingStrategy(0)
...: dest.SetAxisMappingStrategy(0)
...: g = ogr.Geometry(wkt='POINT (37 51)')
...: g.Transform(CoordinateTransformation(source, dest))
...: print(g)
POINT (5677294.03045695 4439106.78725058)
POINT (4118821.15935112 6621293.72274017)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30645#comment:5>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.87f86a543025421f0105246e05ea3b7f%40djangoproject.com.