Questions tagged [qgsmapcanvas]

The tag has no usage guidance.

9 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
94 views

QGIS: QgsMapCanvas rotate vs setRotation

Question regarding QgsMapCanvas using python for QGIS : what is the difference between the following two methods? myQgsMapCanvas.rotate(10.0) myQgsMapCanvas.setRotation(10.0) (myQgsMapCanvas ...
3
votes
0answers
349 views

Dynamic Label or Annotation in QGIS canvas

I'm creating an animation from several Raster images, and I'd like to add a label or an annotation to the map canvas, not the print composer, that will enable me to show the layer's name, which holds ...
2
votes
0answers
43 views

How to switch on snap option in QGIS 2.18 when creating customize polygon

How to switch on snap option in QGIS 2.18 when creating customize polygon as in: class customPoly(QgsMapToolEmitPoint): def __init__(self, iface): self.iface = iface QgsMapToolEmitPoint....
2
votes
0answers
315 views

Scale Text-Annotations according to Map/Composer-Scale

Is there a way to set the size of the QGIS Text Annotations to map units so that they get resized when I choose different scales? I wrote a litte script as a workaround which scales the annotations ...
1
vote
0answers
55 views

Set QgsMapCanvas extent to be empty

I have a standalone pyqgis program and it uses QgsMapCanvas as map display. I would like to set its extent to be empty. How do I do that? I tried the following but it is not working, in the sense ...
1
vote
0answers
116 views

QgsMapCanvas with no extent

I have a stand-alone PyQGIS application that can load vectors/rasters etc. The problem I am facing is when the application is launched, it has an empty QgsMapCanvas as map display, when it is empty, I ...
1
vote
0answers
88 views

QGIS raster layer invalid

I am trying to load a georeferenced .tiff file into the map canvas in a Qt application. While it is displayed when the application is running on my laptop, the same image does not get loaded into the ...
1
vote
0answers
31 views

QgsMapCanvas canvasMoveEvent fails to update mouse position after calling zoomToFullExtent

I have a standalone PyQGis application that can load different types of GIS data including GeoJson. It uses QgsMapCanvas as map display, I have implemented the canvasMoveEvent to capture and display ...
1
vote
0answers
63 views

coordinate returned by xyCoordinate signal is different

I am working on a project based on the api qgis 2.8 and qt 4.8.5 I have two computer one with the qgis 2.8.1 and the other with the qgis 2.8.3 In my application I have a connect to the signal ...