[Qgis-developer] Matching canvas dimensions on workstation to Travis environment

Tom Chadwin tom.chadwin at nnpa.org.uk
Wed Nov 18 09:05:00 PST 2015


What is the default canvas size when QGIS is invoked in Travis - in other
words, when QGIS is run for the first time after installation on Ubuntu? I
have tests for qgis2web, but if I do:

mapCanvas().setExtent(layer.extent())

I get different values for the bounds of the canvas extent in the Travis
test compared to my workstation. The test is invoked with the following
screen size:

xvfb-run --server-args="-screen 0, 1024x768x24"

So, how can I match my desktop environment to get the same canvas bounds
that Travis gets?



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Matching-canvas-dimensions-on-workstation-to-Travis-environment-tp5237237.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list