Timeline for Setting project and layer CRS in PyQGIS with setCrs() has no effect on the map canvas
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 8, 2022 at 9:00 | history | tweeted | twitter.com/StackGIS/status/1501120542128095237 | ||
Mar 8, 2022 at 7:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Oct 25, 2021 at 20:06 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 26, 2021 at 14:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 26, 2021 at 12:06 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jan 26, 2021 at 15:01 | comment | added | sajonainnominado | @Kadir Yes, I have refreshed the map canvas after running the script. Sorry for the delay in response. I had a busy weekend and Monday. | |
Jan 22, 2021 at 11:05 | comment | added | Kadir Şahbaz | Do you refresh the map canvas (programattically or using zoom or pan tool) after setting CRS? | |
Jan 22, 2021 at 10:07 | comment | added | Kadir Şahbaz |
projectObj.setCrs(projectCrs) changes the CRS of a project.
|
|
Jan 21, 2021 at 23:23 | comment | added | sajonainnominado | @Kadir How do I use PyQGIS to change the CRS of a project or a layer so that it shows on the Map View? | |
Jan 21, 2021 at 23:03 | comment | added | Kadir Şahbaz |
When I use projectObj.setCrs(projectCrs) , map in the canvas deforms. What is your QGIS version?
|
|
Jan 21, 2021 at 21:48 | comment | added | sajonainnominado |
@Kadir I have used the Project Properties Window and Layer Properties Window in the QGIS GUI to set the correct layer and project CRS. When I do this, the image in the Map View "deforms" to display the map correctly. I want to do the same thing using Python. I'm trying to use the setCrs() method to accomplish this, but they are not "deforming". Does that help clarify the issue? Would it help if I posted the entire script? Thanks for your help.
|
|
Jan 21, 2021 at 20:56 | answer | added | bugmenot123 | timeline score: 1 | |
Jan 21, 2021 at 19:38 | history | edited | Kadir Şahbaz | CC BY-SA 4.0 |
added 8 characters in body
|
Jan 21, 2021 at 19:23 | history | asked | sajonainnominado | CC BY-SA 4.0 |