I have access to about 1000 satellite images that covers my country. Each of them is associated to a smaller image that is used for browsing the real deal. I would like to write a script that will sweep through the folders and opens all the "browsing" images. I can program in python but I am not sure on how to connect a script like this to QGIS. Can anyone help me?
Take the 2-minute tour
×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
I suppose that you would want to use the os.walk function found in the os module that comes with Python to go through all the directories. You could then use the QgsRasterLayer function to load the image into your script. Here's an example for QgsRasterLayer from the PyQGIS Documentation:
Hope that this helps! |
|||||
|