Try:
map_item.setNewScale(canvas.scale())
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Set-Composer-scale-with-pyqgis-tp5275120p5275129.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
I am from the ESRI world and what Paolo is describing is how ArcMap works, so
when I first started using QGIS I wanted QGIS to work the same and therefore
I created the plugin.
http://plugins.qgis.org/plugins/syncComposerWithMap/
There is lots of room for improvement in the plugin. A signal
In Qgis 2.2 I had a form with tabs. In each tab I repeated the same
attribute at the top along with other attributes that did not repeat. When
I updated the attribute which repeated on each tab the same attribute would
update on each tab. In 2.4, when I update the repeating attribute on one
tab
I am working on a python plugin that works with composer maps and I was
trying to use the moveContent method but was not able to understand the
results. When I try moveContent(1,1) I was expecting the composer map
content to pan 1 unit to the right and 1 unit down but the content moved a
much
Hello All,
I am starting to develop my own plugin by starting and following
instructions at www.qgisworkshop.org but the plugin does not work when the
data is a polyline. Below is part of the plugin that deals with feature
selection. What do I need to change so that it will select polylines?
I was going to try and start to develop a plugin using this
http://www.qgisworkshop.org/html/workshop/plugins_tutorial.html
and
http://www.qgis.org/pyqgis-cookbook/plugins.html
but when I try to compile the UI file I get an error, see below:
D:\Program Files (x86)\Quantum GIS
Additionally, I installed GNUWin and set the the PATH variable to point to
make.exe, then opened the command prompt, navigated to my plugin folder and
issued the MAKE command and received the following error:
C:\workspaces\FlowDirectionTestmake
pyuic4 -o ui_flowdirectiontest.py