1375 Commits

Author SHA1 Message Date
Nyall Dawson
31e8611230 Add quartiles and IQR to QgsStatisticalSummary calculations 2015-05-03 20:48:22 +10:00
Nyall Dawson
154468bd84 Add QgsStatisticalSummary class for calculating stats from a list
of values.
2015-05-02 23:19:39 +10:00
Nyall Dawson
bb0e583f4b Move methods for returning lists of values from a vector layer field
or expression to QgsVectorLayer. Add unit tests.
2015-05-02 20:32:16 +10:00
Nyall Dawson
fadaf12490 Implement implicit sharing for QgsField 2015-05-02 19:12:44 +10:00
Nyall Dawson
7314047698 Fix missing doc strings due to invalid doxygen tags 2015-04-30 17:26:58 +10:00
Nyall Dawson
721d9f5908 Formatting and code cleanups for QgsScaleExpression 2015-04-30 06:28:05 +10:00
vmora
0f35192f3f Add cropTransparent to QgsImageOperation, for cropping transparent
borders from around an image
2015-04-27 18:23:03 +10:00
vmora
cf3a712711 Move prettyBreaks calculation to QgsSymbolLayerV2Utils 2015-04-27 18:22:48 +10:00
vmora
0c5063fee6 Add method to create a QgsDataDefined from a string.
Automatically analyses to determine whether the string refers to
a column or is an expression.
2015-04-27 18:22:36 +10:00
vmora
d4319621a5 Add an isField test for QgsExpression
Checks whether expression consists of solely a field reference
2015-04-27 18:22:18 +10:00
Nyall Dawson
b2ca7faf3e Modernise diagram properties UI:
Switch to stacked widget, QgsScaleRangeWidget, QgsFieldExpression
widget, QgsDoubleSpinBoxes.

Rearrange and reword controls to clarify their behaviour.
2015-04-22 18:03:32 +10:00
Nyall Dawson
16af787192 Fix line placement flags for diagrams. Line placement options for
PAL are flags, not an enum
2015-04-22 18:03:24 +10:00
Nyall Dawson
774e5d3012 Fix crash on QgsDataDefined copy (fix #12027) 2015-04-22 06:00:59 +10:00
Juergen E. Fischer
d79268cbd7 indentation update 2015-04-17 09:51:24 +02:00
Nyall Dawson
cfe397e718 Better fix for ffd81f4, avoid unnecessary copies of geometry 2015-04-14 10:36:04 +10:00
Nyall Dawson
7c7ef6d8cd Fix diagrams not respecting canvas rotation
Also fixes diagrams not showing for invalid polygons (fix #11955)
2015-04-13 23:16:14 +10:00
Nyall Dawson
437fc82435 Followup 43f150d, fix labels always enabling with diagrams 2015-04-13 23:16:14 +10:00
Nyall Dawson
28b5217bb8 Merge pull request #1974 from vmora/graduated_by_size
[feature] graduated with varying size
2015-04-11 11:15:50 +10:00
vmora
84af60ad56 [feature] graduated with varying size
The graduated symbol renderer now allows to use varying size instead of
varying color.

The classification remains the same an tabbed size/color in the gui
allows the use to choose one type or the other.
2015-04-10 09:14:14 +02:00
Nyall Dawson
d7eec444a2 [FEATURE] Add checkbox to always show diagrams for a layer
Unlike the global labeling setting this applies only to diagrams,
and only for a single layer. Defaults to on. (fix #8706)
2015-04-09 17:50:53 +10:00
Nyall Dawson
43f150dc71 Allow diagrams to be disabled without losing settings (fix #11288) 2015-04-09 17:50:29 +10:00
Nyall Dawson
134067716d Fix diagrams not initially showing when toggling on/off layers 2015-04-09 17:50:18 +10:00
Nyall Dawson
ccfe557cbe Fix DPI scaling issue with paint effects and composer 2015-04-08 05:54:45 +10:00
Juergen E. Fischer
12d7cfca03 indentation update 2015-04-07 14:27:39 +02:00
Nyall Dawson
8b37ea2b05 [FEATURE] Add option to symbology to prevent clipping of features
This option (located under the symbol advanced menu) disables the
automatic clipping of lines/polygons to the canvas extent. In
some cases this clipping results in unfavourable symbology (eg
centroid fills where the centroid must always be the actual
feature's centroid). (fix #9757)
2015-03-28 21:16:45 +11:00
Nyall Dawson
742f3233ee [FEATURE] Paint effects for layers and symbol layers
This commit adds a new framework for implementing paint effects, which
modify the results of QPainter operations to apply visual effects
such as drop shadows and blurs.

The initial implementation allows for effects to be applied to entire
layers and individual symbol layers.

Included are a drop shadow, inner shadow, blur, inner glow, outer glow,
colorise and transform effect. A "stack" effect is also implemented
which allows other paint effects to be combined in various ways.

Sponsored by hundreds of generous kickstarter contributors!
2015-03-28 20:04:50 +11:00
Matthias Kuhn
c44285ba04 Make virtual fields updatable
Fix #11547
Fix #10994
2015-03-27 14:12:03 +01:00
Nyall Dawson
837c7ee8d3 [composer] Don't redraw map if layers change and map is set to cached
Previously map was being redrawn every time a layer was added or
removed from the registry, which blocked the ui until the map
redraw is complete.

Now the map will only be redrawn as a result of layer changes
if it's set to Render mode.

Possible fix for 12234 and 12125. (refs #12234, #12125)
2015-03-26 10:58:19 +11:00
Juergen E. Fischer
80bbed1595 include qgslayerdefinition.sip in bindings 2015-03-24 13:19:03 +01:00
Juergen E. Fischer
f17755cec4 indentation update 2015-03-19 22:58:11 +01:00
Nyall Dawson
5c14c21b1d Implement smoothing algorithm for geometries 2015-03-19 23:26:59 +11:00
Nyall Dawson
7882fe2f25 Add methods for comparison of QgsPoint, QgsPolyline and QgsPolygon
These methods allow for fuzzy comparison of coordinates with a
specified tolerance.
2015-03-19 19:48:57 +11:00
Nyall Dawson
44f7930ecf [FEATURE] Add follow point alignment for multiline labels
When set to this mode, text alignment for labels will be dependant
on the final placement of the label relative to the point. Eg, if
the label is placed to the left of the point then the label will
be right aligned, and if it is placed to the right of the point
then the label will be left aligned.
(fix #11153)
2015-03-19 19:48:38 +11:00
Juergen E. Fischer
bfb8ab6893 edit widgets: keep default values of new feature's attributes until they are added
(fixes #12391 & #12386)
2015-03-18 16:09:47 +01:00
Martin Dobias
69d0b30d58 Allow data items from plugins 2015-03-18 14:24:36 +07:00
Nyall Dawson
a4d17c0e9b Ignore position of thousands seperators when editing scale combo box
... be more permissive about the conversion from string to number
after a value is entered in the combo box (fix #12385)
2015-03-17 18:56:53 +11:00
Martin Dobias
d6f0dbd403 Allow 3rd-party data item providers to be plugged 2015-03-05 00:13:06 +07:00
Martin Dobias
59e710c2cd Fix QgsDataItem python bindings - transfer of ownership 2015-03-05 00:13:05 +07:00
Martin Dobias
cdb44a3cc6 Browser: Abstract creation of custom data items into QgsDataItemProvider 2015-03-05 00:13:05 +07:00
Juergen E. Fischer
919b8b6183 fix measurement dialog translation (fixes #12262) 2015-02-26 03:09:46 +01:00
Matthias Kuhn
edd8a375ab Fix a const... 2015-02-25 21:15:15 +01:00
Nyall Dawson
3c71498c3e Add some missing /TransferThis/ to sip bindings for QObject parents 2015-02-18 17:35:47 +11:00
Juergen E. Fischer
d9a1654501 dxf export: make encoding configurable (fixes #11578) 2015-02-15 22:10:17 +01:00
Juergen E. Fischer
e2e23f0c8e snapping dialog: block signals when reloading snapping options
QgsProject: also apply default when property is not available and not only if
an existing one is invalid

fixes #12192
2015-02-15 13:55:43 +01:00
Juergen E. Fischer
ee50520a52 fix leak on loading layer definition (also fixes #12064) 2015-02-09 11:46:00 +01:00
Juergen E. Fischer
0593ef6a26 rename new QgsSnapper::snapPoint method to snapMapPoint and restore python name
of deprecated old version (fixes #12153)
2015-02-09 01:15:07 +01:00
Sandro Santilli
1ccf558497 Add a new visiblePolygon method to QgsMapSettings
Centralizes code to return a possible rotated map area boundaries.
Makes use of the new method from the grid decoration.

Adds new testcase for QgsMapSettings, including test for visibleExtent,
mapUnitsPerPixel and the new visiblePolygon method.
2015-02-07 15:05:00 +01:00
Nyall Dawson
4def416bbc Merge pull request #1858 from vmora/symbol_list_refacto
line symbol layer refacto to avoid code duplication
2015-02-07 20:51:40 +11:00
Nyall Dawson
e4fb95fad1 [pal] Some const correctness and avoid passing large object by value 2015-02-05 18:34:14 +11:00
Nyall Dawson
93a86835d6 Fix common memory leak after using QgsSymbolLayerV2Utils::loadSymbol 2015-02-03 21:22:46 +11:00