Questions tagged [qgsmapcanvas]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
1answer
4k views

How to load multiple vector layers into QGIS' map canvas using python scripting?

I am trying to write a standalone script in python to create a QGIS map canvas. The vector layers I am attempting to load are Shapefiles. Currently, I am able to load each vector layer, add them to ...
2
votes
1answer
607 views

Segmentation Fault upon exit of QGIS map canvas

I have simplified my original code. My code is very similar to Pyqgis' cookbook. I am simply loading one VALID layer to QgsMapCanvas and then displaying it. Everything is displayed corectly etc. ...
2
votes
1answer
428 views

Stuck on how to list loaded layers in QGIS 3 via Python

I've stuck on a issue about getting a list of loaded layers. I've two layers loaded, one spatial (point, line or area) and another one non spatial (postgresql table). I've tried this code but it lists ...
1
vote
1answer
44 views

Overlay raster above uploaded shpfile but behind background?

I have a .shp file of the world oceans (hydropolys.shp) and create a map with it in QGIS, so the background of the image is the land. Does anyone have any suggestions on how I can overlay my raster ...