5

I have a QGIS project with several hundred WMS and ArcGIS MapServer layers. Every time I open the project it starts loading them one by one, which my take quite a while. enter image description here

Is there a way to prevent them from being loaded automatically?

I checked the Network Options menu, but besides setting connection timeouts, there is no option in regards to loading on startup.

2
  • The image you show in the question is a .sid image file not a WMS. Several hundred layers in one project is a lot, what is the use case for having that many layers in one project?
    – artwork21
    Commented Nov 30, 2016 at 16:45
  • @artwork21 The WMS behave the same as the .sid in the ArcGIS MapServer. They are 1*1Km aerial images (what else) of a larger area.
    – HDunn
    Commented Nov 30, 2016 at 16:52

1 Answer 1

1

I overcame a similar problem by creating a single polygon layer with 1 feature for each WMS extent.

I then populated a field in the attribute table with the URL for the associated WMS.

Then created an action to perform the get request when the user clicks on the feature they are interested in. That way only the relevant layers are loaded.

3
  • Sounds interesting. Could you explain a bit more or include a screenshot of the action settings?
    – Aquamarine
    Commented Nov 14, 2023 at 11:10
  • I've moved jobs so don't have access to that process anymore, so I can't take any screenshots or provide the code. It was quite easy though, check this question to help build the action and this one to modify it to get it to work for WMS Commented Nov 15, 2023 at 20:01
  • Thanks - I'll have a look at that!
    – Aquamarine
    Commented Nov 17, 2023 at 19:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.