306 Commits

Author SHA1 Message Date
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
Larry Shaffer
2d21b674fa Ensure local server tests can run on ubuntu, followup to 7b2640d 2014-02-25 22:25:04 -07:00
Larry Shaffer
7b2640da1b Add debian-based setup for local test server 2014-02-25 17:54:56 -07:00
Etienne Tourigny
7399789f85 add files for raster histogram (Int16 and Float32) 2014-02-22 19:13:54 -03:00
Larry Shaffer
0a9b857177 Add label svg background unit tests and control images 2014-02-21 22:50:04 -07:00
Larry Shaffer
7e33fdec37 Fix #9057, offset value misplaced when exporting composer to image
- Add unit test and control images
2014-02-21 22:47:34 -07:00
Larry Shaffer
203d67f628 Add labeling composer unit tests and control images
- Initial support for image output at 72 dpi
- Comparison against canvas output has slight shift (needs fixed)
2014-02-21 14:00:13 -07:00
Larry Shaffer
c4a60de06c Update labeling canvas and server unit tests and output new control images 2014-02-21 14:00:13 -07:00
Larry Shaffer
10f2ac92ac Fix partial labels unit tests and generate new control images 2014-02-20 21:22:56 -07:00
Larry Shaffer
7d263be7aa Add missing .qml to local server test 2014-02-19 18:29:02 -07:00
Larry Shaffer
be83e7c8e3 Add test-labeling master project and italic, bold-italic test fonts 2014-02-19 13:27:59 -07:00
Larry Shaffer
34be93b849 Update test font to Vera San and start workaround for Mac 10.9 font-loading bugs
- Test font loading should be moved to QgsFontUtils
2014-02-19 13:27:59 -07:00
Larry Shaffer
bf5f60817a Add getLocalServer and unit test for refactored local test server class 2014-02-19 13:27:58 -07:00
Larry Shaffer
2f1a5c92e0 Convert local test server over to controller of web and fcgi servers
- Initially using lighttpd/spawn-fcgi
2014-02-19 13:27:58 -07:00
Radim Blazek
2b3e19d134 disabled composermaptest grid anotations 2014-02-19 16:09:32 +01:00
Radim Blazek
9aeb4ba863 updated single symbol rendererstest 2014-02-19 15:47:23 +01:00
Nyall Dawson
ffcbdabe4e [composer] Refresh control images following frame join stle change 2014-02-06 22:46:43 +11:00
Nyall Dawson
058cba2037 [composer] Add some anomoly images for scale bar tests 2014-01-30 22:24:19 +11:00
Nyall Dawson
6bb9dfec00 [FEATURE][composer] Allow for more than one atlas controlled map in compositions (or none), by moving some atlas properties to map items (fix #9248) (fix #6484) 2014-01-14 22:52:01 +11:00