372 Commits

Author SHA1 Message Date
Nyall Dawson
863c73db8f Label test mask updates 2016-08-09 16:55:13 +10:00
Nyall Dawson
c3f720f80b [pal] Only apply distance from line midpoint penalty to non closed linestrings
Sponsored by Andreas Neumann
2016-08-09 16:55:12 +10:00
Nyall Dawson
dc0cc32046 Further tweaks to line labeling, add tests
Sponsored by Andreas Neumann
2016-08-09 16:55:11 +10:00
Nyall Dawson
01e6c04980 Labeling tests 2016-08-09 16:55:11 +10:00
Nyall Dawson
3d6688cce5 Add labeling tests for letter/word spacing 2016-07-27 06:37:16 +10:00
Nyall Dawson
5228de353c Update curved label test reference images 2016-07-27 06:37:16 +10:00
Nyall Dawson
92eec0e338 Revert "[labeling] Curved labels are now angled per character"
This reverts commit f6d07a33b71a9b19579d19dadbe777b1f14c6842.
2016-07-20 19:44:13 +10:00
Nyall Dawson
4bcae0693d Revert "Update labeling reference images"
This reverts commit 1aec78145f7553ca62584a9bb626b8a531a01a8e.
2016-07-20 19:44:04 +10:00
Nyall Dawson
fc88336a62 Revert "Add labeling tests for letter/word spacing"
This reverts commit 9dfdfc645f327b38ef90974751104c4b1523736e.
2016-07-20 19:43:57 +10:00
Nyall Dawson
9dfdfc645f Add labeling tests for letter/word spacing 2016-07-20 13:04:50 +10:00
Nyall Dawson
1aec78145f Update labeling reference images 2016-07-20 13:04:50 +10:00
Frits van Veen
f6d07a33b7 [labeling] Curved labels are now angled per character
...instead of shifted along base line (fix #15210)
2016-07-20 13:04:50 +10:00
Nyall Dawson
7f2bdcf342 Update legend test masks, fix for PyQt5 2016-07-14 07:12:15 +10:00
Nyall Dawson
2f8c6f5207 [composer] Add a checkbox for legends to prevent automatic resizing
A new checkbox has been added to the legend settings to control
whether or not a legend should be automatically resized to fit
its contents.

If unchecked, then the legend will never resize and instead just
stick to whatever size the user has set. Any content which
doesn't fit the size is cropped out.

Refs #10556

On behalf of Faunalia, sponsored by ENEL
2016-07-13 17:35:44 +10:00
Nyall Dawson
4f31ab656e [composer] Fix setting legend content by map not resizing legend
When a legend was set to filter content by map, it wasn't
consistently being resized to fit the legend contents. This caused
issues for atlas exports where legends could grow but never
shrink.

Fix #14707

On behalf of Faunalia, sponsored by ENEL
2016-07-13 17:35:44 +10:00
Nyall Dawson
93f2eec711 [composer] Fix initial size of legend is wrong if symbol size in
map units is used (fix #11921)

On behalf of Faunalia, sponsored by ENEL
2016-07-13 17:35:44 +10:00
Hugo Mercier
8976c9de02 Allow curved polygons to be inverted (fixes #15113) 2016-06-23 16:09:23 +02:00
Hugo Mercier
6fae6e22b0 Update arrow mask image 2016-06-21 11:18:19 +02:00
Hugo Mercier
36e7f920c2 Fix outline rendering in arrow symbol layer 2016-06-21 10:33:54 +02:00
Nyall Dawson
aa0e6d8944 Followup c78347, update test images 2016-06-16 18:30:22 +10:00
Nyall Dawson
2265115f80 Fix issues rendering SVG with text (fix #14644, #14794) 2016-06-08 18:46:01 +10:00
Nyall Dawson
0c6e289c8e Update test masks 2016-06-07 07:26:34 +10:00
Nyall Dawson
b4f88c5396 Update test masks for arrow symbol layer 2016-06-04 19:16:47 +10:00
Hugo Mercier
efd32ff2a8 Arrow symbol layer: option to repeat or not the arrow on the line 2016-06-02 09:52:03 +02:00
Hugo Mercier
6c9b588906 Arrow symbol layer: halved arrows and head width/height
The head size can now be configured by its width and its height
Arrows can also be rendered as "half arrows"
2016-06-02 09:52:03 +02:00
Alvaro Huarte
6969a1a401 Fix travis errors 2016-05-25 22:53:01 +02:00
Nyall Dawson
d73210a5f8 Update test mask image 2016-05-19 21:04:50 +10:00
Denis Rouzaud
1602c02df7 Merge pull request #3009 from pblottiere/magnifier
[FEATURE] add a map canvas magnifier
2016-05-19 06:30:07 +02:00
Nyall Dawson
57d114e2e2 Update test masks for Qt5, enable labeling tests 2016-05-15 20:38:38 +10:00
Blottiere Paul
b930a4b5e2 fix extent 2016-05-12 17:42:55 +02:00
Blottiere Paul
9a62613b6b [FEATURE] add a map canvas magnifier 2016-05-12 09:42:51 +02:00
Nyall Dawson
81e72b782f Merge pull request #3060 from nyalldawson/filled_marker
New "Filled marker" symbol layer type
2016-05-09 21:23:59 +10:00
Nyall Dawson
794ab065dc [FEATURE] Embed atlas feature into composer HTML source as GeoJSON
This change makes the current atlas feature (and additionally all
attributes of related child features) available to the source of
a composer HTML item, allowing the item to dynamically adjust
its rendered HTML in response to the feature's properties. An
example use case is dynamically populating a HTML table with
all the attributes of related child features for the atlas
feature.

To use this, the HTML source must implement a "setFeature(feature)"
JavaScript function. This function is called whenever the atlas
feature changes, and is passed the atlas feature (+related attributes)
as a GeoJSON Feature.

Sponsored by Kanton of Zug, Switzerland
2016-05-09 21:19:29 +10:00
Nyall Dawson
ea20149239 [FEATURE] New "Filled marker" symbol layer type
A "filled marker" is similar to the simple marker symbol layer, except
that it uses a fill sub symbol to render the marker. This allows use
of all the existing QGIS fill (and outline) styles for rendering
markers, eg gradient or shapeburst fills.

A new abstract class QgsSimpleMarkerSymbolLayerBase has been created
from which both QgsSimpleMarkerSymbolLayerV2 and
QgsFilledMarkerSymbolLayer derive. All common code has been moved to
this base class, allowing for easy addition of new shapes or features
to both simple markers and filled markers without duplication.

Also, adds a lot of missing docs to marker symbol layers.
2016-05-07 22:06:10 +10:00
Nyall Dawson
a67853f825 Fix calculation of point symbol bounds using data defined rotation or offset 2016-04-29 20:16:38 +10:00
Webmaster
fef8c1fef2 [FEATURE] add setting to control centroid fill point rendering
on all parts or a single part of multi-features (fixes #9199)
2016-04-27 21:10:41 +07:00
Matthias Kuhn
da0682d730 Add difference image 2016-04-23 21:09:21 +02:00
nirvn
9735c13e33 [FEATURE] add outline settings to font markers 2016-04-22 09:09:00 +07:00
Nyall Dawson
90613ca5d3 One more xenial test mask update 2016-04-22 07:07:08 +10:00
Nyall Dawson
011bde8873 More xenial, Windows test mask updates 2016-04-22 06:39:00 +10:00
Nyall Dawson
eacca44c6f Test mask updates (qt5 and xenial) 2016-04-22 05:46:58 +10:00
Hugo Mercier
8f0f9ccbb2 Add mask images for arrow symbol layer test 2016-04-19 18:21:51 +02:00
Hugo Mercier
e849cad11d Merge pull request #2955 from mhugo/arrows
[Feature] Arrow symbol layer
2016-04-19 09:23:33 +02:00
Nyall Dawson
efb84ea2fa [FEATURE][diagrams] Add optional legend entries for diagram sizes
A new "legend" tab has been added to diagram properties, allowing
both the existing attribute legend and a new size legend to be
enabled/disabled. The size legend has a configurable marker
symbol.

Also includes unit tests for both diagram attribute and size
legends.

Sponsored by ADUGA
2016-04-19 08:16:05 +10:00
Hugo Mercier
1ee0bc5704 Add @geometry_point_count and @geometry_point_num 2016-04-18 11:36:18 +02:00
Hugo Mercier
34b7ebc2b5 Add a new "arrow" symbol layer
The "arrow" symbol layer is a symbol layer allowing to draw straight
or curved arrows from a line layer.
2016-04-18 11:36:12 +02:00
Nyall Dawson
81744ecf90 Another missing Qt5 test mask 2016-04-18 17:10:39 +10:00
Nyall Dawson
a44d0c1fac Add a missing qt 5 mask image 2016-04-18 16:20:34 +10:00
Nyall Dawson
c24938e3e4 Update test masks for Qt5, enable more tests on Travis Qt5 builds 2016-04-18 15:23:02 +10:00
Nyall Dawson
4bbe318c20 [symbology] Remove distorted star symbol 2016-04-12 12:12:57 +10:00