Category : qgis

I have a basic understanding of Python, but have been trying to batch export VIIRS Nighttime Light data from Google Earth Engine to Google Drive via the QGIS Python console. I found code for batch importing images into QGIS at the following link: https://github.com/Ojaybee/GEE_QGIS_scripts/blob/master/GEE_collection_Gen.py I tried adapting the code to export to Google Drive instead ..

Read more

I’m working on Python 3.9.2 and got this "error :No module named qgis". I’m trying to connect to a database and query within it. I’ve seen the code beow working under python 2. Is there any difference with Python 3 ? […] from qgis.core import * import qgis.utils uri.setConnection(‘{0}’.format(hote_IP), "5432", ‘{0}’.format(xxx), ‘{0}’.format(xxx),'{0}’.format(xxx)) db = QSqlDatabase.addDatabase("QPSQL") ..

Read more