All Questions
7 questions
6
votes
1
answer
1k
views
Getting X,Y coordinate with mouse click on vertex of line feature using PyQGIS
How do I get X,Y coordinate with mouse click with enabling snapping so that only line's vertex point coordinates will be selected?
By using following code I can get latitude longitude of clicked ...
2
votes
1
answer
568
views
Writing Custom Map Tools using RectangleMapTool
I am creating a plugin with a preview window where the user must select a rectangle to define the study zone.
I see in this https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/canvas.html ...
1
vote
2
answers
707
views
How to add shape file directly to the print composer/Layout view in QGIS?
We can easily add the map from map canvas to print composer but is there any possible way to add vector layer directly to the print composer in QGIS either by PyQGIS script or by using some plugin or ...
0
votes
1
answer
493
views
Adding layer to canvas crashes QGIS
I am having some difficulties in adding a layer to my canvas or even to main project. I create a plugin in QGIS 3.10. This plugin has a table of contents and a canvas to open some maps. I search and ...
2
votes
0
answers
557
views
PyQGIS (3.6.3 Noosa) Why is self.iface.mapCanvas().setExtent() being overridden in plugin?
I am writing a plugin that first adds the Google Imagery XYZ tile layer and then adds various other layers - some from a GeoPackage and others by creating their geometry in PyQGIS.
The last function ...
5
votes
1
answer
3k
views
Dynamically move map canvas and main window using PyQGIS
I am trying to create plugin that will open new window with some layer, Dynamically "pan" my window, when main window is pan. So boundingbox coordinates should be the same in both windows.
I need new ...
6
votes
1
answer
2k
views
How can I optimize layer filtering using setSubsetString or QgsFeatureRequest().setFilterFids(my_indexes)
I'm developing a plugin (QGIS 2.8.1) for a traffic assignment where I want to show the results of my simulation at each time step. Right now I'm using Time Manager plugin but it gets very slow when my ...