ImportPhotos icon indicating copy to clipboard operation
ImportPhotos copied to clipboard

Read web

Open sickel opened this issue 5 months ago • 0 comments

To share a set of pictures with other QGIS users, it may be easier to access the images on a web server.

In our case, we use sharepoint synced to local disk. That means I can access images locally on c:/users/morten/onedrive/company/projectname/photos, whereas my colleague dave would see the same directory as c:/users/dave/onedrive/company/projectname/photos, but we can both access them on https://companyshared,sharepoint.com/sites/department/Shared documents/projectname/photos

So, to make it possible to create a photos layer that is useable for both of us, I have added two fields on the main form:

Relative root, that is what I want to get rid of from the initial path, i.e. in my case "c:/users/morten/onedrive/company/" Web root, that is what should be added to get the correct url, i.e. in my case https://companyshared,sharepoint.com/sites/department/Shared documents/

The url will be stored in a new field 'Link' in the data file.

If Relative root is empty, the input folder will be used, if Web root is empty, Link will be set as the total path of the image.

For some strange reason, the image name is (still) not clickable on the first loading of the photo viewer. browse back and forth and it will come up.

sickel avatar Aug 26 '24 11:08 sickel