[Qgis-user] recommended QGIS Container-image for PyQGIS in standalone scripts

Ujaval Gandhi ujaval at spatialthoughts.com
Wed Aug 14 02:22:06 PDT 2024


You can install qgis via conda which gives a functioning environment where you
can run pyqgis standalone without any additional
setup https://aneto.pt/posts/tutorials/2019-05-29-using-qgis-from-conda/
[https://mailtrack.io/l/0cf27eaaf5a65a913ff736c23e92f10bb2a858d1?url=https%3A%2F%2Faneto.pt%2Fposts%2Ftutorials%2F2019-05-29-using-qgis-from-conda%2F&u=8747767&signature=012874e84d2ab1f8] 


You can also set appropriate environment variables on your standard QGIS install
and run QGIS in a headless mode. Setup instructions for Windows and Mac are
at https://courses.spatialthoughts.com/pyqgis-masterclass.html#writing-standalone-python-scripts
[https://mailtrack.io/l/51d2157c10ae6d8b81038af01a94155871ac1276?url=https%3A%2F%2Fcourses.spatialthoughts.com%2Fpyqgis-masterclass.html%23writing-standalone-python-scripts&u=8747767&signature=464afe13f5ed03f3]

---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/l/87d0691d71748c20d7fee82bca4ad8a10405e8c8?url=http%3A%2F%2Fwww.spatialthoughts.com&u=8747767&signature=2c031c7e8843dd91]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=3D]
On Wed, Aug 14, 2024 at 2:05 PM Marco Lechner via QGIS-User
<qgis-user at lists.osgeo.org> wrote:


> Hallo,
> 
>  
> 
> is there any Container-image that is recommended, if I want to run a PyQGIS
> standalone script like described in the PyQGIS Developer Cookbook [1] in a
> container?
> 
> The code I want to run does not need any additional python-libs and no
> GUI-QGIS. I wonder if there is such a thing like “headless-QGIS” in an Image?
> The official image on Dockerhub [2] seems to be very large for that. Or is
> that the way to go?
> 
>  
> 
> Regards
> 
> Marco
> 
>  
> 
> [1] https://docs.qgis.org/3.34/en/docs/pyqgis_developer_
> cookbook/intro.html#using-pyqgis-in-standalone-scripts
> [https://docs.qgis.org/3.34/en/docs/pyqgis_developer_cookbook/intro.html#using-pyqgis-in-standalone-scripts]
> 
> [2] https://hub.docker.com/r/qgis/qgis/tags
> [https://hub.docker.com/r/qgis/qgis/tags]
> 
>  
> 
> i.A. Dr. Marco Lechner
> 
> Leiter Fachgebiet RN 1 │ Head section RN 1
> 
>  
> 
> --
> 
> Bundesamt für Strahlenschutz │ Federal Office for Radiation Protection
> 
> Koordination Notfallschutzsysteme │ Coordination of Emergency Response Systems
> │ RN 1
> 
> Rosastr. 9
> 
> D-79098 Freiburg
> 
>  
> 
> Tel.: +49 30 18333-6724
> 
> E-Mail: mlechner at bfs.de [mlechner at bfs.de]
> 
> #gernperDu | #CallMeByMyFirstName
> 
> www.bfs.de [http://www.bfs.de/]
> 
> 🌐 Besuchen [https://www.bfs.de/] Sie unsere Website, folgen Sie uns auf
> Mastodon [http://social.bund.de/@strahlenschutz] und abonnieren
> [https://www.bfs.de/strahlenschutzaktuell] Sie unseren 📢 Newsletter.
> 
> 🔒 Informationen zum Datenschutz [https://www.bfs.de/datenschutz] gemäß
> Artikel 13 DSGVO
> 
> 💚 E-Mail drucken? Lieber die Umwelt schonen!
> 
>  
> 
>  
> 
> _______________________________________________
> QGIS-User mailing list
> QGIS-User at lists.osgeo.org [QGIS-User at lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240814/6552bd19/attachment.htm>


More information about the QGIS-User mailing list