274 Commits

Author SHA1 Message Date
Nyall Dawson
14690d0716 [FEATURE][composer] Add choice of display style for empty tables. Options
include hiding the entire table, showing empty cells, or displaying a
set message in the table body. Sponsored by City of Uster, Switzerland.
2014-09-22 22:59:30 +10:00
Nyall Dawson
c3ec4b9eb0 [FEATURE][composer] Add option for showing child features from a relation
for attribute tables in the composer. If selected, the attribute table
will show all related features to the current atlas feature within
the table body. Sponsored by City of Uster, Switzerland.
2014-09-22 22:59:20 +10:00
Nyall Dawson
1cb328c349 Fix incorrectly failing composer html test 2014-09-22 20:54:40 +10:00
Nyall Dawson
b893cb241c [FEATURE][composer] Allow manual control of column widths for attribute table items. 2014-09-22 19:13:47 +10:00
Nyall Dawson
eea0451b79 Some fixes to TestQgsComposerTableV2 2014-09-21 21:31:24 +10:00
Nyall Dawson
6138131366 Fix failing atlas tests 2014-09-21 21:00:44 +10:00
Nyall Dawson
3af68f4888 Rebuild composer test images at 96 dpi to speed up unit tests 2014-09-21 19:47:39 +10:00
Nyall Dawson
3ca416a620 [composer] Initial test suite for QgsComposerTableV2 (Sponsored by
City of Uster, Switzerland)
2014-09-17 22:57:49 +10:00
Nyall Dawson
52c519e64e [composer] Add simple line border frame style for composer map
grids (sponsored by NIWA, New Zealand)
2014-09-03 20:38:51 +10:00
Nyall Dawson
53fa30f1bb [FEATURE][composer] Add tick styles for frames. Options include
drawing ticks only inside the map frame, drawing ticks outside
the frame, or drawing ticks both inside and outside the frame.
(fix #6954) (Sponsored by NIWA, New Zealand)
2014-09-03 20:04:44 +10:00
Nyall Dawson
8544185985 [composer] Add tests for grids on specific sides (sponsored by
NIWA, New Zealand)
2014-09-03 19:55:40 +10:00
Nyall Dawson
48e1411e26 [composer] Remove raster layer from composer grid tests (sponsored
by NIWA, New Zealand)
2014-09-03 19:54:29 +10:00
Nyall Dawson
dc27e13ed3 [FEATURE][composer] New frame/annotations only grid style. Selecting
this style causes only the frame and annotations to be drawn, with no
grid lines or other markings over the map. (Sponsored by NIWA, New
Zealand)
2014-09-03 19:40:49 +10:00
Martin Dobias
4fa1f45d56 Creation of legend items for map layers moved to QgsMapLayerLegend 2014-09-01 10:10:35 +07:00
Martin Dobias
fda50ede01 Move bits of legend rendering code into item classes + add rendering test 2014-09-01 10:10:35 +07:00
Nyall Dawson
9d18220138 [FEATURE][composer] Allow remote urls to be entered as picture path
for picture items, and automatically fetch them. Sponsored by the
City of Uster, Switzerland.
2014-08-19 21:35:14 +10:00
Nyall Dawson
d0e9d8d126 [FEATURE][composer] Allow specifying user stylesheets to apply to a HTML item's content 2014-07-27 22:18:45 +10:00
Nyall Dawson
f76c257f89 [composer] More cleanups - move font utils from QgsComposerItem to QgsComposerUtils, add tests 2014-07-19 22:01:58 +10:00
Nyall Dawson
19708be155 [FEATURE][composer] Allow evaluation of QGIS expressions inside html item source. Expressions are evaluated before HTML is rendered, allowing the expression results to modify how the HTML content is rendered. Sponsored by City of Uster, Switzerland. 2014-07-16 22:50:40 +10:00
Nyall Dawson
256999d56f [FEATURE][composer] Option for manual entry of HTML item source. Sponsored by City of Uster, Switzerland. 2014-07-16 22:50:40 +10:00
Nyall Dawson
2041fc2480 [composer] Refactor QgsComposerItem:
- New class QgsComposerObject, which both QgsComposerItem and QgsComposerMultiFrame
derive from. This class contains the framework for data defined composition properties.
- New class QgsComposerUtils, containing helpful static functions previously in QgsComposerItem
- Test suites for data defined settings in QgsComposerObject and functions in QgsComposerUtils
2014-07-14 23:51:10 +10:00
Nyall Dawson
8650597b7f [FEATURE][composer] Add marker style for map grids (fix #9381) 2014-07-13 21:54:37 +10:00
Nyall Dawson
09645e4ecc [FEATURE][composer] Allow setting secondary color for scalebars, allow alpha channels in scalebar colors 2014-06-28 08:46:44 +10:00
Nyall Dawson
01b3d9662c [composer] Fix order of vertices returned by mapPolygon when map rotation is set, fix drawing overview frame when either map is rotated (fix #10644) 2014-06-23 19:14:39 +10:00
Nyall Dawson
7af7b88c99 [composer] Correct placement of cross grids (fix #10626) 2014-06-19 05:44:05 +10:00
Nyall Dawson
7cb2315e29 Fix some failing tests (diagrams control images needed rebuilding following MTR composer changes, added tolerance to renderers test) 2014-06-18 21:48:20 +10:00
Martin Dobias
3fe12df507 Fix #10355 (crash) and #10338 (overlapping polygons) in inverted polygon renderer
Conflicts:
	python/core/symbology-ng/qgsinvertedpolygonrenderer.sip
	src/core/symbology-ng/qgsinvertedpolygonrenderer.cpp
	src/core/symbology-ng/qgsinvertedpolygonrenderer.h
	src/gui/symbology-ng/qgsinvertedpolygonrendererwidget.cpp
	src/gui/symbology-ng/qgsinvertedpolygonrendererwidget.h
2014-06-10 11:54:45 +07:00
Hugo Mercier
9d49422878 Inverted polygon renderer: add test for projected and merged 2014-05-27 09:03:18 +02:00
Hugo Mercier
315b28c21c Inverted polygon renderer: fix rendering when projection is enabled 2014-05-26 18:43:34 +02:00
Hugo Mercier
80ae9ef28b Inverted polygon renderer: add an option to preprocess polygons using an union 2014-05-26 17:15:22 +02:00
Martin Dobias
0775a89ed5 Merge pull request #1380 from Oslandia/mask_renderer
[FEATURE] Inverted polygons renderer
2014-05-24 11:26:41 +07:00
Hugo Mercier
79061547d4 Add unit tests for the inverted polygon renderer 2014-05-23 19:57:21 +02:00
Hugo Mercier
084fa8992b [FEATURE][composer] Add a 'predefined scales' mode to atlas maps, which sets an atlas maps' extent to the largest predefined scale which fits the atlas feature. Scales are taken from the project's predefined scales, or the global predefined scales. 2014-05-23 11:17:05 +10:00
Juergen E. Fischer
7c75ffa3b0 spelling fixes 2014-05-17 22:02:03 +02:00
D'Hont René-Luc
07c57585c1 [RASTER][Feature] Applying scale and offset to raster data - funded
Ifremer

An issue has been opened 5 mounth ago
[BUG] #8417 incorrect value loaded from netcdf file
The data has not be loaded incorrectly, but QGIS doesn't apply scale
and offset defined for each band.

This commit will apply scale and offset to GDAL Provider BandStatistics
and to RASTER block of data.

It also adds bandScale and bandOffset method to QgsRasterDataProvider Python API.
2014-05-15 16:55:30 +02:00
Nyall Dawson
fa0f0bd176 [FEATURE][composer] Add option for controlling placement of rendered images inside a picture item (eg, top left, bottom right, etc) 2014-05-15 11:58:54 +10:00
Nyall Dawson
1af7581bf0 Add tests for composer html multi frames using smart breaks 2014-05-06 21:12:09 +10:00
Nyall Dawson
3afee3c629 [composer] Add tests for expression based picture source (sponsored by City of Uster, Switzerland) 2014-04-28 20:19:01 +10:00
Nyall Dawson
963ae707f4 [composer] Add tests for picture resize modes (sponsored by City of Uster, Switzerland) 2014-04-28 20:19:00 +10:00
Nyall Dawson
53cda0a9c7 [composer] Move composer picture related tests into their own seperate test suite (sponsored by City of Uster, Switzerland) 2014-04-28 20:19:00 +10:00
Etienne Tourigny
2d737510d4 Merge pull request #1213 from etiennesky/histogram_bars
Histogram bars
2014-04-16 21:46:42 -03: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
Larry Shaffer
20933dedd9 Add README.rst for labeling unit tests 2014-03-25 17:09:42 -06:00
Larry Shaffer
f29d44e759 Add PDF composer output labeling tests setup
- Only support for Poppler with Cairo (pdftocairo), since without Cairo a PDF's vectors are not always rendered properly
2014-03-24 20:40:19 -06:00
Larry Shaffer
db4401fe00 Rebuild labeling tests control images with smaller size (420 x 280) 2014-03-24 20:40:19 -06:00
Nyall Dawson
942d5da59b Add option to ignore interior polygon rings when calculating buffered shading for shapeburst fill mode (can be useful for eg ignoring islands when shading water bodies) 2014-03-22 07:39:14 +11:00
Nyall Dawson
13cbfd138c [FEATURE] Add 'shapeburst' fill style. Shapeburst fills implement a buffered gradient fill, where a gradient is drawn from the boundary of a polygon towards the polygon's centre. Configurable parameters include distance from the boundary to shade, use of color ramps or simple two color gradients, optional blurring of the fill and offsets. 2014-03-21 12:50:50 +11:00
Larry Shaffer
fa157b0deb Add composer svg export label unit tests
- Fix composer composition setup to near identical output of canvas->image (finally, expect for symbology, which still seems to be double-antialiased)
- Rebuild control images for composer->image output
2014-03-14 12:25:36 -06:00
Larry Shaffer
53cfa9e203 Convert label unit tests to using only QgsMapSettings
- Rebuild all control images
2014-03-06 12:36:53 -07:00
Larry Shaffer
bad189813c Refactor composer label test to work with svg, pdf and multi-resolution classes
- Initial (untested) svg and pdf render-to-image setup
2014-03-06 12:36:53 -07:00