[QGIS-Developer] PyQGIS zoom to layer not working

Frank Broniewski broniewski at a-a.lu
Thu Jun 22 01:56:26 PDT 2023


Hey Richard,

thanks for the good wishes! I feel, I completely jinxed it 😃. I will continue to investigate, as soon as I find a solution, I'll post it here ...

-----Ursprüngliche Nachricht-----
Von: Richard Duivenvoorde <rdmailings at duif.net> 
Gesendet: Dienstag, 20. Juni 2023 15:33
An: Frank Broniewski <broniewski at a-a.lu>; qgis-developer at lists.osgeo.org
Betreff: Re: AW: [QGIS-Developer] PyQGIS zoom to layer not working

On 6/20/23 14:56, Frank Broniewski wrote:
> I did set the QGIS default CRS to 2169 in the options, but this did not help unfortunately.

Mmm, that should work:

Settings / CRS and Transforms/ CRS for projects / Use a default CRS AND I would maybe also set the CRS for layer to epsg:2169

Another option is to create a 'Default Project' (empty, BUT crs set to epsg:2169) Settings / General / Set Current Project As Default and Checkbox 'Create new project from default project'

fiddling with those I'm pretty sure it should be possible to start QGIS in the right crs..

Suc6

Richard Duivenvoorde


More information about the QGIS-Developer mailing list