Closed peterhor closed 2 months ago
Have tested adding WMS (using the latest URL from Kartverket ongoing work with changing URL-addresses) for
"scale Norway" means you may zoom to the layer and the layer will be visible. (Not the case for AR5 unless you zoom in to appr. 1:45 000).
Perhaps as default we could zoom to layer Norgeskart gråtone.
Questions
Perfect @9ls1. @lasseke commited implementation of Norgeskart in color yesterday db90d37, which is now selectable in the plugin. Replies:
I have added the code for WMS topograatone and WMS nib the project_setup.py and nin_qgis_plugin_dialog_base.ui. However, no WMS-layer is appearing when I check 1, 2, or all 3 check boxes, and I can't figure out how to correct the code (no error is thrown, but the code doesn't react to the changes in the check boxes. @lasseke, I need help. 🙏 NB! NiB requires permission (the user must be a Norge digital-partner). May use NiB WMTS instead (less resolution)?
Hey @9ls1! This was on me, the status of the checkboxes was retrieved only when the UI was initialized, not when the button was clicked... Commit fdcada4 should fix this. However, the "Norge i bilder" WMS layer doesn't seem to work, could you double-check if the URI string contains the correct information?
Also FYI, the snapping options you added throw a deprecation warning:
warning:C:\Users/lassetk/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\nin_qgis_plugin\project_setup.py:522: DeprecationWarning: IndividualLayerSettings constructor is deprecated
snap_settings = QgsSnappingConfig.IndividualLayerSettings()
Not really a problem, but they apparently changed how this should be handled in newer pygis versions :) Thanks for your work!
Ahh sorry @9ls1, I overlooked your comment about the NiB credentials in my last reply - this probably explains why the WMS layer doesn't load. I'd suggest we use the lower-resolution one in the interest of open accessibility, but I'm happy to go for the credential solution, too (might get a bit tricky regarding handling data security programmatically).
Also FYI, the snapping options you added throw a deprecation warning:
warning:C:\Users/lassetk/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\nin_qgis_plugin\project_setup.py:522: DeprecationWarning: IndividualLayerSettings constructor is deprecated snap_settings = QgsSnappingConfig.IndividualLayerSettings()
Not really a problem, but they apparently changed how this should be handled in newer pygis versions :)
Oh, we don't want to be to old fashioned, do we? :-) I'll look into it and will update the code soon.
Ahh sorry @9ls1, I overlooked your comment about the NiB credentials in my last reply - this probably explains why the WMS layer doesn't load. I'd suggest we use the lower-resolution one in the interest of open accessibility, but I'm happy to go for the credential solution, too (might get a bit tricky regarding handling data security programmatically).
I'll look into the WMTS-possibilty (no valid IP in the field any way I suppose).
Replaced wms with wmts, but NiB wmts is not loaded. May that be due to this is tile (looking differently in QGIS comparing with wms) and therefor the parameters need to be adjustet (something else)? vs.
Regarding the deprecation warning, I'll look into to it soon.
wmts norge i bilder added in #38
In the QGIS project, we want to add a background map.