53700 Commits

Author SHA1 Message Date
David Signer
8d1ceda878 correct images from qgis travis build 2019-02-25 15:10:14 +01:00
David Signer
de96fc75fa tests for scaled symbol sizes 2019-02-25 09:48:52 +01:00
David Signer
3e86163514 comments and comments since 2019-02-25 09:48:31 +01:00
David Signer
7de50a016d calculate mMmPerMapUnit with mapUnitsPerPixel to avoid to have redundant info 2019-02-22 08:15:18 +01:00
David Signer
a04f91b840 use scale and mapUnitsPerPixel from map parameters bbox and size
in case bbox and size is given in the GetLegendGraphics request, the size of symbols defined by map units is calculated regarding the scale of that.

fixes #21309
2019-02-21 17:58:59 +01:00
Alessandro Pasotti
24c09d1673
Merge pull request #9170 from elpaso/bugfix-21254-load-style-from-db
[ogr] Show style description instead of name in other styles
2019-02-14 08:25:40 +01:00
Nyall Dawson
7418c189d0 [processing] Also generate friendly names for outputs when converting models to scripts 2019-02-14 15:36:55 +10:00
Nyall Dawson
d342ce939b [processing] When converting models to Python, use friendlier (more
descriptive) names when storing child algorithm results

Makes for much easier to understand scripts
2019-02-14 15:36:55 +10:00
Nyall Dawson
3ceea2a050 [processing] Add alg descriptions as comments when converting models to python
Makes for easier to understand scripts
2019-02-14 15:36:55 +10:00
Alessandro Pasotti
62111b9993 Fix test 2019-02-13 18:28:46 +01:00
Alessandro Pasotti
dabd649a6d
Merge pull request #9164 from elpaso/bugfix-21227-layer-rename-styles
Fix GPKG layer rename styles in browser
2019-02-13 16:24:50 +01:00
Alessandro Pasotti
767fc059b2 Remember last used source in load styles dialog
... just a tiny UX improvement
2019-02-13 15:11:25 +01:00
Alessandro Pasotti
3e041b3a30 [ogr] Show style description instead of name in other styles
Fixes #21254
2019-02-13 15:09:20 +01:00
Alessandro Pasotti
8639bcf853 [db-manager] Use QgsDataItem implementation for GPKG layer rename
- Removes code duplication
- Uses a tested and robust implementation (from OGR)
- Takes care of renaming QGIS styles
- Updates the information view in the plugin

Fixes #21227
2019-02-13 12:49:55 +01:00
vsklencar
88afe7515a Some changes of widgets after review:
PhotoPanel: added focus
TextEdit: Fixed references for edit widget and removed redundant empty lines and properties, removed textWrap property for single line edit
ExternalRersources: Revert back to use one image for icons and previewPhoto with better handling
DateTime: fixed typos
2019-02-13 10:50:05 +01:00
vsklencar
78639f0323 [QgsQuick] Feature form improvements
Changes are related to following widgets used in the FeatureForm:

Checkbox:
* fixed old import of QgsQuick
* changed indicator of a checkbox to be able to apply styles

DateTime:
* fixed wrong behaviour of the widget if a value is undefined
* replaced label with textfield with formatting options (ported from QField)

ExternalResources:
* fixed pixalation of icons
* added new icon without alternative border to be able to put color overlay on it
* fixed broken layout of icons

ValueMap
* updated way how to read option values from field config/setup (ported from QField, related to changes of the field config since QGIS 3.x)

TextEdit:
* Unified styling of the widgets - added some padding, changed background, height

Fields style added to QgsFeatureFormStyle
Added "fields" style object to customize some properties (e.g color, height, radius) of editor widgets. Due to new style options also widgets have been updated.
2019-02-13 10:50:05 +01:00
Nyall Dawson
fc8fd1e26b [processing] When converting models to python, correctly use a
multi-step feedback object to give scripts accurate progress reports

And also add in checks for cancelation between child algorithm
execution to allow generated scripts to early exit
2019-02-13 19:17:30 +10:00
nirvn
1e431f20b2 [themes] Add minimum width for QPushButton widgets (fix tiny raster calc. buttons) 2019-02-13 12:55:37 +07:00
Nyall Dawson
76b7bcef96 Try to fix astyle errors 2019-02-13 08:47:32 +10:00
Nyall Dawson
493185c6a0 Astyle 2019-02-13 07:59:30 +10:00
Nyall Dawson
85b5167730 Fix build 2019-02-13 07:59:30 +10:00
Nyall Dawson
29fa7b6e7b Fix build, indentation 2019-02-13 07:59:30 +10:00
Nyall Dawson
6648a955bc Fix test 2019-02-13 07:59:30 +10:00
Nyall Dawson
69f45e389c Refactor QgsExpressionContext and move QgsExpressionContextUtils
out to its own header

Avoids slow recompilation caused by changes to the frequently
modified QgsExpressionContextUtils class
2019-02-13 07:59:30 +10:00
Nyall Dawson
d281c8aef5 Fix build 2019-02-13 07:59:30 +10:00
Nyall Dawson
60a1d6306f Fix some missing expression context variables in processing expression based widgets 2019-02-13 07:59:30 +10:00
Nyall Dawson
e533a4078c [processing] Expose some model related variables to expressions
run inside models

Allows expressions to access important variables like the current
model path
2019-02-13 07:59:30 +10:00
Nyall Dawson
2180b63e35 [processing] Correct order of expression scopes in widget wrapper expression contexts 2019-02-13 07:59:30 +10:00
Nyall Dawson
493aed58fb API tweak 2019-02-13 07:59:30 +10:00
Martin Dobias
43512d561a [quick] Improve map settings flags for canvas
- labeling engine settings from project were not being applied
- enable simplification of geometries (faster map rendering)
- enable partial map updates when incremental rendering is enabled
  (to be able to see how wmts/xyz tiles are being loaded)
2019-02-12 22:09:41 +01:00
Martin Dobias
6fab904cc9 Fix tests due to updated tolerance 2019-02-12 22:09:23 +01:00
Martin Dobias
673d494941 [quick] Fix identify: give priority to points (and lines)
Without priority for points (and lines) it is otherwise very difficult
to identify them on top of polygons or difficult to identify a point
on top of a line.

Also lowered the default radius from 8mm (which seemed excessively large) to 5mm.
2019-02-12 22:09:23 +01:00
Nyall Dawson
f95d3235f3
Merge pull request #9156 from nyalldawson/fix_21188_render_cats
[categorized] Fix blank layers when using categorized renderer
2019-02-13 05:33:02 +10:00
Nyall Dawson
07746dbc0e [postgis] Fix creation of new Z/M enabled, curved geometry type layers 2019-02-13 05:32:51 +10:00
Alessandro Pasotti
61d361d674 GPKG: Rename styles when layers are renamed
Partially fixes #21227

TODO:

- DB manager
- Other providers
2019-02-12 19:37:01 +01:00
Alessandro Pasotti
287a3b0ebc Renamed test db for consistency
(minor change)
2019-02-12 18:25:43 +01:00
Nyall Dawson
2e20f13279 Fix fragile test 2019-02-12 16:48:44 +10:00
Nyall Dawson
7714bfbfbe [categorized] Fix blank layers when using categorized renderer
Fixes #21188
2019-02-12 13:37:55 +10:00
Nyall Dawson
51a4981237 [memory] Optimise iteration, avoid multiple map lookups and an unnecessary expression evaluation 2019-02-12 13:01:04 +10:00
Nyall Dawson
6fb7856b0e [memory] Fix inefficient memory feature iteration when using a FilterFids request
The request was not being handled correctly by the provider, resulting
in the provider iterating through every feature in the layer at every
attempt to retrieve a particular feature from a list of IDs.

Greatly speeds up numerous Processing algorithms when working
with temporary outputs
2019-02-12 13:01:04 +10:00
Nyall Dawson
916805cf04 [processing] More responsive cancelation for dissolve algorithm 2019-02-12 12:58:55 +10:00
Nyall Dawson
d614ff39e7 [processing] Field calculator algorithms should not force an upper limit
on string field lengths

Don't hold back the algorithms because of outdated format limitations!
2019-02-12 12:58:55 +10:00
nirvn
e833360309 [ui] Harmonize 2D/3D map view toolbars 2019-02-12 09:55:46 +07:00
Harrissou Sant-anna
e24403da2a Remove trailing space 2019-02-12 12:51:27 +10:00
Harrissou Sant-anna
1efb96b7a9 Some tweaks on translatable strings 2019-02-12 12:51:27 +10:00
Nyall Dawson
2729af65c3 [processing] Port expression widget wrapper to new API
Fixes confusing expression parameter definitions in modeler
child algorithms (there's no direction as to what the
widget should be) and ensures that the correct expression
context is revealed to the widget when in all modes.
2019-02-12 07:18:02 +10:00
Nyall Dawson
6f6d562ec8 Fix QgsFieldExpressionWidget doesn't correctly emit signals when
clearing the current expression/field
2019-02-12 07:18:02 +10:00
Nyall Dawson
9a75976ca4 API tweaks 2019-02-12 07:18:02 +10:00
Nyall Dawson
d3bd1370d6 [processing] Fix incorrect parameter definition used when evaluating
parent layer parameter in the gui for dynamic properties data defined
buttons
2019-02-12 07:18:02 +10:00
Luigi Pirelli
2a917f4c10
Merge pull request #9049 from luipir/rasterSLD_export
Add SLD 1.0 export for rasters
2019-02-11 22:04:30 +01:00