-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QgsCoordinateTransform.transform() doesn't work anymore in QGIS master #25497
Comments
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Nyall Dawson (@nyalldawson) Something seems odd with your build or environment. Is this a custom build?
|
Author Name: Cyprien Antignac (Cyprien Antignac) It's not a custom build, I have install QGIS from "QGIS-OSGeo4W-2.99.0-48-Setup-x86_64.exe" to prepare my plugin to QGIS 3.0 |
Author Name: Richard Duivenvoorde (@rduivenvoorde) confirmed here on Debian too running a small project with:
then:
throws
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Cyprien Antignac (Cyprien Antignac) I've retry "transform()" with "QgsPointXY" and finally it work, I think it's a personal mistake in this case. But I still have not succeeded with "QgsRectangle()". I've also retry with transformBoundingBox() :
And it returns :
|
Author Name: Alessandro Pasotti (@elpaso)
|
Author Name: Anónimo (Anónimo) Applied in changeset bfa857b.
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Cyprien Antignac (Cyprien Antignac)
Original Redmine Issue: 17600
Affected QGIS version: master
Redmine category:python_bindings_/_sipify
Assignee: Alessandro Pasotti
The bug concern "QgsCoordinateTransform.transform()" in QGIS 2.99.
If I use a "QgsRectangle()" (box is a QgsRectangle()) in parameter, it returns "argument 1 has unexpected type 'QgsRectangle()'", it's the same thing with "QgsCoordinateTransform.transformBoundingBox()". Owever if i try with "QgsPointXY()" or X/Y coordinate it returns "Exception : unknown".
When I try to use "tranform()" in Python Console, the help section returns only 2 of the 3 possibilities ("QgsRectangle()" not appear) but the "QgsPointXY()" and X/Y coordinates possibilities don't even work.
It's a big problem for me, my plugin can't anymore reproject the rectangle to use it has zoom factor (for example : if QGIS is in EPSG:4326, I need to reproject the rectangle to EPSG:2154, if I don't, QGIS zoom in Germany but my area is in the center of France).
The text was updated successfully, but these errors were encountered: