1

I have managed to add a GeoJSON layer to QGIS via an HTTP protocol in my local machine. How can I save the connection in the browser so I can access it in other QGIS projects?

Below is a sample URL I used:

https://localhost/rest/services/api/geroserver/find?layer=rivers.fill&searchText=ch&searchField=id&returnGeometry=true&geometryFormat=geojson

(The above link is just for demo purposes only, it serves as an example. I cannot share the real link)

2
  • Can you just use wfs in the browser? like lifeingis.com/adding-layers-from-geoserver-in-qgis (include port number)
    – Mapperz
    Commented Sep 7, 2023 at 21:35
  • Thank you @Mapperz in a real work scenario, your approach is correct to follow. I am just looking at other possibilities which I have managed to achieve some of them, I am looking into ways to keep them in my QGIS environment without having to reload them manually all the time. It is like putting a helicopter engine into a bike.
    – GforGIS
    Commented Sep 8, 2023 at 5:16

2 Answers 2

3

Save it as a layer definition file (*.qlr).

Example:

  • I add this geojson to QGIS

    enter image description here

  • I save as a layer definition

    enter image description here

  • It's now available anytime in the browser

    enter image description here

  • If I add the .qlr to QGIS from the browser, it is still pointing to the online GeoJSON

    enter image description here

0
0

To add to @user2856 answer, by adding the folder as a favorite folder, I could not only access to the .qlr file but also to the project and its content in terms of layers. See the picture below.:

enter image description here

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.