286 Commits

Author SHA1 Message Date
Nyall Dawson
93a86835d6 Fix common memory leak after using QgsSymbolLayerV2Utils::loadSymbol 2015-02-03 21:22:46 +11:00
Juergen E. Fischer
abd4a04399 sip update 2015-02-03 02:21:52 +01:00
vmora
261271518c line symbol layer refacto to avoid code duplication
The line symbol layer as been refactored to avoid code duplication and
expose the offset and offset units in the base class. Note that
the added functions in the base class where already defined in all
child classes.
2015-01-23 09:12:06 +01:00
Juergen E. Fischer
221e9ef7c7 dxf export: support line offsets 2015-01-23 00:14:39 +01:00
Juergen E. Fischer
cce2eb50cb indentation update 2015-01-22 20:56:02 +01:00
Martin Dobias
3d539c8cd3 [FEATURE] Show rule-based renderer's legend in a tree hierarchy
The functionality can be used in other renderers too, the only requirement
is that legend nodes need to specify their parent rule key via data().

Note that ayer tree model must have ShowLegendAsTree flag enabled, otherwise
the model will keep showing lists instead of trees.
2015-01-22 13:42:31 +07:00
Nyall Dawson
6a080bada1 Add some missing type conversions to python bindings 2015-01-21 11:04:38 +11:00
Nyall Dawson
ca4a60a6aa Fix redundant angle methods for QgsGradientFillSymbolLayerV2 2015-01-15 22:25:18 +11:00
Martin Dobias
3711fd5899 WMS server: support multiple styles in GetStyles request
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 6002233F59) and commissioned to Gis3W s.a.s.
2015-01-13 15:33:10 +07:00
Juergen E. Fischer
e48a6f642f indentation update [ci skip] 2014-11-30 10:26:39 +01:00
Juergen E. Fischer
98c0771b1a update scripts/fix_allows_to.sh and run it 2014-11-30 01:42:27 +01:00
Nyall Dawson
fa1e8032e7 [symbology] Add method for retrieving symbol layers as list 2014-11-24 20:45:10 +11:00
Nyall Dawson
8039895db2 Add support for weighting points by expression to heatmap renderer 2014-11-23 21:48:41 +11:00
Nyall Dawson
802a4acdba Add an invert checkbox for heatmap renderer 2014-11-22 20:02:54 +11:00
Nyall Dawson
727747658b [FEATURE] Live heatmap renderer
Allows for live, dynamic heatmaps for point layers. Options include
specifying heatmap radius in pixels, mm or map units, choice of
color ramp, and a slider for selecting a tradeoff between render
speed and quality.
2014-11-22 13:03:54 +11:00
Juergen E. Fischer
9ceb5ceab6 sip sync 2014-11-21 01:17:21 +01:00
Juergen E. Fischer
a57066a48d * fix cppcheck warnings
* some sip updates
* [API] fix spelling QgsMultiRenderChecker::drawBackround
* [API] fix spelling QgsSymbolLayerV2Utils::drawStippledBackround
* [API] fix spelling QgsMapSettings::layerTransfrom
2014-11-20 15:02:35 +01:00
Nyall Dawson
c8ad99bf6a Fix incorrect cast to double in shapeburst fill header 2014-11-19 19:40:51 +11:00
Nyall Dawson
52159851bf [FEATURE] Raster image symbol fill type
Allows for filling polygons with a tiled raster image. Options
include (data defined) file name, opacity, image size (in pixels,
mm or map units), coordinate mode (feature or view) and rotation.
2014-11-19 15:26:09 +11:00
Juergen E. Fischer
d4f64d9bde indentation update and typo fixes 2014-11-13 23:13:13 +01:00
Martin Dobias
8db77fcff7 Fix Andreas' problem with checkboxes in legend + update SIP bindings
The problem was that rule-based renderer allowed cloned rules to have the same unique rule key.
That in turn created the confusion with checkboxes in legend. Now rules always have new rule key
when cloned. The only exception is when the whole renderer is cloned - in such case we preserve
their rule keys, so that other components (legend / visibility presets) can still keep using
the original rule keys.

Projects where this problem appears need to be fixed - the easiest way is to select all rules,
copy&paste them and remove the previous rules.
2014-10-24 12:25:33 +07:00
Juergen E. Fischer
82b6e0342a cosmetic cleanups, typo fixes, formatting 2014-10-21 01:33:20 +02:00
Martin Dobias
4906d56955 Fix #10819 (simple/marker line with offset on the wrong side of inner rings) 2014-10-21 00:51:52 +07:00
Chris Crook
823b57e360 Fix for bug 11366 2014-10-09 09:37:19 +13:00
Chris Crook
6c2c6e2b6b Two bug fixes for graduated renderer 2014-10-06 07:41:54 +13:00
Chris Crook
ba0f9d40c9 Reverting to preferred QgsRenderRangeV2LabelFormat 2014-10-03 18:09:23 +13:00
Chris Crook
0d1f719652 Adding missing elements from SIP 2014-10-03 06:14:38 +13:00
Chris Crook
a5f0de9dd7 API fixes to use Legend instead of Label where it makes more sense 2014-10-01 12:47:01 +13:00
Chris Crook
21ddf1294d Changing decimal places to precision, allowing negative precision, improving rounding for locales with , instead of . for decimal point 2014-10-01 09:41:07 +13:00
Nathan Woodrow
fcfafa0a51 Use a single format string using Qt format for renderer label 2014-09-28 17:24:10 +10:00
Nathan Woodrow
0c6576c423 Merge pull request #1587 from ccrook/CategorizedRendererUpdate
Categorized and graduated renderer enhancements
2014-09-26 20:23:03 +10:00
Chris Crook
25a7be2966 Modified labelling to include prefix, separator, suffix. 2014-09-26 14:47:46 +12:00
Martin Dobias
e37a5ad8df [FEATURE] Legend filtering based on map content (in main window, composer, WMS)
There is new "filter" button in layers panel that toggles this functionality
and in composer legend widget.

Related feature is that layer tree now shows symbols in map units with correct size
(even when filtering is not enabled) so as the map view changes the legend node icons
are updated too (if they use map units).

GetLegendGraphics in WMS server
-------------------------------

This is an extension of standard GetLegendGraphics request according to MapServer RFC 101.
See the document for more details: http://mapserver.org/development/rfc/ms-rfc-101.html

In summary, clients need to add BBOX and CRS/SRS parameters to get appropriate legend based on the given map view.
Parameters WIDTH and HEIGHT are also taken into account as they specify map view image size for correct calculation
of size of legend symbols (if they are based on map units).

--

This software has been commissioned by Tuscany Region (Italy),
co-funded by the European Commission and developed under the project LIFE12 ENV/IT/001054 LIFE + IMAGINE.
The software has been realized by Gis3W s.a.s.

Questo software è stato commissionato da Regione Toscana (Italia),
cofinanziato dalla Commissione Europea e sviluppato nell'ambito del progetto LIFE12 ENV/IT/001054 LIFE + IMAGINE.
Il software è stato realizzato da Gis3W s.a.s.
2014-09-25 12:56:37 +02:00
Nyall Dawson
b83722346e Improved method for selecting random colors for categorised renderer,
which should result in more visually distinct color choices
2014-09-25 10:44:07 +10:00
Chris Crook
a5911e78b7 Implementation of graduated renderer breakpoint editor, minus SIP for editor 2014-09-24 20:46:06 +12:00
Chris Crook
2f706bc47a Refactoring ready for manual update dialog. Also improves labelling of StdDev classifications and better determination of decimal places to use 2014-09-24 10:50:54 +12:00
Chris Crook
47f7db5f21 Merge branch 'master' into CategorizedRendererUpdate 2014-09-20 18:31:33 +12:00
Chris Crook
abd9e3cd21 Numerous enhancements to graduated and categorized symbol renderers 2014-09-20 18:30:12 +12:00
Nathan Woodrow
8c327ed35e Add asImage method for QgsSymbol 2014-09-19 21:21:04 +10:00
Nyall Dawson
39700e7d97 Option in color picker dialog to import a gpl palette to a new user scheme 2014-09-17 22:53:35 +10:00
Martin Dobias
c3db6d0988 Merge pull request #1556 from leyan/convertToRuleBasedSymbology
[FEATURE] Keep renderer settings when changing renderer type (where it is possible)
2014-09-13 17:58:45 +07:00
Nyall Dawson
b44ef92b02 Default names for colors when adding to schemes 2014-09-13 08:41:11 +10:00
Martin Dobias
1a7dfa1a6b [FEATURE] display rule-based renderer legend in a pseudo-tree (in layer tree model/view) 2014-09-12 11:40:15 +07:00
Nyall Dawson
e9d7b520db Support dragging colors from QgsColorPreviewWidget 2014-09-11 21:56:48 +10:00
Nyall Dawson
c4c58ab342 Accept dropped colors on color widgets 2014-09-11 21:11:04 +10:00
Leyan
9931dde90a refactor to a more general convertFromRenderer function 2014-09-09 19:55:21 +08:00
Leyan
11d159cd85 Add factory annotation and use clone for rule based renderer 2014-09-09 19:47:28 +08:00
Leyan
45dfd53b4a add sip 2014-09-09 19:47:28 +08:00
Martin Dobias
dd78f099ab Fix doxygen warnings, fix missing bindings 2014-09-01 11:05:51 +07:00
Martin Dobias
d994e0a1b3 Fix #11006 (wrong size of symbols in print composer legend if map units are used) 2014-09-01 10:10:38 +07:00