Nyall Dawson
041129d507
Fix loading composition triggers render of all composer maps
...
Also cleanup some more unused API methods
2017-03-21 10:32:53 +10:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Nyall Dawson
a188d14f48
Remove map settings parameter from QgsComposition
...
Breaks the hard link between canvas and compositions!
Fix #11077
2017-01-24 14:32:08 +10:00
Nyall Dawson
a3dd380d35
[needs-docs] Composer maps default to a "use project CRS" setting
...
And overriding projection is only done if user has manually
chosen a different CRS from the list.
This means that templates and compositions in server can still
adapt to follow the project CRS, but if desired specific map
items (eg an overview map) can use the CRS override to always
show in a particular CRS.
2017-01-18 12:30:47 +10:00
Nyall Dawson
9a6d714061
[FEATURE][composer] Allow choice of CRS for map items
...
This allows the CRS for map items to differ from the canvas/project
CRS. It also allows different map items to have different CRS,
eg an overview map can be set to a different CRS to the main map.
An unfortunate side effect of this change and the ongoing work
to separate compositions from canvas is that datum transforms
are no longer supported in composer. This cannot be fixed until
the datum transform store is rewritten to not depend on canvas
(ie, it's also broken for upcoming multi-canvas work)
2017-01-17 19:18:47 +10:00
Nyall Dawson
e0934d7766
[composer][needs-docs] Rename "world file map" option to "reference map"
...
This option will be used for more than just world file generation,
and instead will indicate which map should be considered the master
map for the composition from which any composer properties
calculating map units will derive the scale from.
2017-01-16 15:52:19 +10:00
Martin Dobias
8c340f7144
Make composition associated with QgsProject ( #3957 )
...
... rather than using project singleton within compositions
2017-01-06 17:22:34 +08:00
Martin Dobias
483c7f4b86
Test fixes and further QgsProject::instance() removals
2016-12-11 00:31:27 +08:00
Martin Dobias
d56a97d4fe
Merge QgsMapLayerRegistry into QgsProject
...
All methods/signals of QgsMapLayerRegistry moved verbatim to QgsProject.
2016-12-10 15:18:12 +08:00
Nyall Dawson
25125b089e
Remove deprecated composer methods
2016-09-14 07:20:17 +10:00
Martin Dobias
ab4a83b49b
Goodbye to QgsMapRenderer ( #3333 )
...
For the time being the class is kept in the server code while it is still being used there.
2016-07-24 22:40:52 +02:00
Nyall Dawson
4cfacf14e3
Make API more consistent
...
- rename methods with XML to Xml, CRS to Crs, WMS to Wms, ID to Id
- rename methods with SRS to Crs
- rename methods with abbreviations like "dest" to "destination"
- rename methods with abbreviations like "src" to "source"
2016-07-21 08:40:50 +10:00
Matthias Kuhn
abfd7740bd
Fix qgis.PyQt compatibility imports
2016-04-29 14:10:41 +02:00
Denis Rouzaud
8071acd064
move PyQt compat folder to python/qgis
2016-04-29 14:10:26 +02:00
Juergen E. Fischer
f41304637c
switch tests to pyqt wrappers
2016-03-21 17:00:26 +01:00
Juergen E. Fischer
c6d921729e
python fixes:
...
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
python/console/console_sci.py:547 QsciScintillaCompat?
python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
Juergen E. Fischer
5c4bf99ce2
debian packaging update: manually merge some changes from PR#2818 and
...
some spelling fixes.
2016-02-20 16:55:16 +01:00
Matthias Kuhn
c21889f945
Add qgis.testing module for generic qgis test helpers
2016-02-04 13:36:13 +01:00
Matthias Kuhn
8a9399095b
Indentation update
2015-12-11 00:07:37 +01:00
Nyall Dawson
0c5475545f
Cleanup control_images folder by grouping some tests in subfolders
2015-08-30 20:15:25 +10:00
Juergen E. Fischer
b39055b39c
indentation update (now including autopep8)
2015-08-22 14:29:41 +02:00
Sandro Santilli
fb344ff1b6
Use a simpler image for testing composer map rotation and overview
...
Update expected results and configuration of new image
Add rendering anomalies, as determined by travis ubuntu 12.02
2015-02-05 19:08:11 +01:00
Juergen E. Fischer
956c155e8f
fix python pep8 warnings and fix some revealed errors
...
pep8 --ignore=E111,E128,E201,E202,E203,E211,E221,E222,E225,E226,E227,E231,E241,E261,E265,E272,E302,E303,E501,E701 \
--exclude="ui_*.py,debian/*,python/ext-libs/*" \
.
2015-02-01 20:46:47 +01:00
Nyall Dawson
c9e5341af4
[composer] Add some python tests for QgsComposerMapGrid
...
(sponsored by NIWA, New Zealand)
2014-09-03 21:23:57 +10:00
Nyall Dawson
0b32f2ac38
[tests] Fix composer tests. Rebuild images following MTR rendering changes. Switch tests to use standard test font.
2014-04-03 22:56:34 +11:00
Juergen E. Fischer
0693fe93ee
fix some tests crashes, fix some tests and some mtr updates
2014-03-29 17:55:29 +01:00
Nyall Dawson
719c78c2c7
[composer] Clean up item rotation api, seperate item rotation (for shapes, labels) from map rotation and picture rotation.
...
Maintain compatibility with 2.0 api, deprecate ambiguous rotation/setRotation methods
2013-12-30 20:00:55 +11:00
nyalldawson
6aed6fee08
[tests] Fix python compositionchecker to derive from render checker, fix most python composer tests ( fix #9117 )
2013-12-29 09:52:16 +11:00
Hugo Mercier
b18f2736e1
Change computeWorldFileParameters signature and fix Python unit test
2013-09-08 13:17:39 +02:00
Paolo Cavallini
135ef36569
Merge pull request #665 from Oslandia/overview_centering
...
[2.1] Overview centering
2013-09-05 02:22:42 -07:00
Juergen E. Fischer
51074d7b82
test fixes:
...
* port python test to sip api v2 (fixes #8314 )
* introduce compareWkt for more tolerant WKT comparisions in C++ tests
* require UTF-8 locale for regression1141 test on linux
2013-07-19 21:59:58 +02:00
Hugo Mercier
f0f72ca8a9
Add SIP and Python unit test for overview autocentering.
...
Work funded by Tuscany Region - SITA. Contract "Support to the use
of GFOSS (Geographic Free and Open Source Software) Desktop tools"
(CIG Z3B06FA6D7).
2013-06-17 17:34:33 +02:00
Juergen E. Fischer
15539f34ce
more Quantum GIS => QGIS updates
2013-05-30 16:19:19 +02:00
nyalldawson
519fe2f4ac
Add python bindings and tests for grid blending, grid annotation font color, vector feature blending and vector layer transparency
2013-05-13 22:28:00 +10:00
Juergen E. Fischer
d0aa1e47e8
indentation update
2013-05-02 00:02:25 +02:00
nyalldawson
171973a54f
Add blending mode for overview frame, option to invert overview frame
2013-04-29 21:48:49 +10:00
Marco Hugentobler
078f0d0ad2
Fix python zebra style test
2013-01-11 11:57:27 +01:00
Alexander Bruy
5c64c10284
fix tests
2012-12-23 10:40:23 +02:00
Tim Sutton
b89d0e275c
Unit test updates - mark bad tests as expectedFailure
2012-11-15 16:07:36 +02:00
Tim Sutton
6c695d5fc1
Enabled some tests that werent running because they missed test prefix in method name. Better error messages for failing tests
2012-11-07 17:04:21 +02:00
Marco Hugentobler
f1c99553e3
Fix python composermap test
2012-10-06 11:26:36 +02:00
Marco Hugentobler
efb2329c0f
Fix for white stripes between raster tiles
2012-10-06 00:16:02 +02:00
Tim Sutton
705719cfb2
Revision and refactor of python unit tests: Pep8 and 257 formatting. Use helper to import unittest so that unittest2 and unittest are seemless. 3 tests currently fail - will review those tomorrow.
2012-10-05 03:43:13 +02:00
Radim Blazek
24a047d283
raster sip fix for test unit
2012-09-13 15:08:23 +02:00
Marco Hugentobler
a4c709e11e
Upload images from python composer check to cdash, fix frame of python composer test
2012-08-29 13:24:42 +02:00
Marco Hugentobler
f7ef19e4b4
Add python composition checker and composermap test
2012-08-09 09:17:15 +02:00