I have defined xform
as a QgsCoordinateTransform
to project geographic coordinates.
I can use:
unprojPoint = xform.transform(point, QgsCoordinateTransform.ReverseTransform)
to do the reverse operation, but how can I apply this to a QgsGeometry
?
I can do:
line.transform(xform)
alright, but this won't take a direction argument.
I would expect something along the lines of:
line.transform(xform, QgsCoordinateTransform.ReverseTransform)
would work but no luck...
Do I have to set up a new QgsCoordinateTransform
to do this?
Note: I am using QGIS 3.0