Geographic Information Systems Asked by jsbcf on November 28, 2020
Is there a way to set up an automated photo import from a network folder in QGIS?
Specifically, I would like to push a custom button and select a root folder, and as images populate the folder I would like them to import into QGIS. Intervals of 30 min to 1 hour for automated import but with the option of manually refreshing and importing if there are new files.
Is this even possible? Not looking for hand holding or completed answer, maybe a nudge in the right direction.
You could definitely write a custom script to auto-download files from the internet or a network folder using cron (if you're a unix/linux user) or schtasks (if you're a windows person), which lets you execute scripts at specific times of day. For importing them into QGIS, you could use cron functions/schtasks cmdlets to execute a download to a folder and then subsequently execute another script to add it as a QGIS layer or whatever using the QGIS API for Python. There's also the QGIS network module that has the contentfetcher method for HTTP servers, but idk if that will work for your network folder since it is an HTTP protocol for getting data from a URL.
As far as having the option to do it manually, you would just want to save the script and make it executable so you could execute it from the terminal/CMD whenever you like. I've included the links to the cron, schtasks and QGIS network docs below, which should put you on the right path. If you don't have experience with scripting just yet, I'd start with the basics of a language that you can then use to solve solutions like this regularly instead of finding ad hoc applications - it's well worth the time.
If you add some more details like the programming languages you're familiar with, your OS, how you want to store your data (data layer, map document, jpeg, etc), you will get a lot more detailed and helpful answer.
https://qgis.org/pyqgis/3.0/core/Network/index.html https://help.ubuntu.com/community/CronHowto https://docs.microsoft.com/en-us/windows/desktop/taskschd/schtasks
Answered by scook on November 28, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP