7509 Commits

Author SHA1 Message Date
Nyall Dawson
b9c9ad05bc [processing][needs-docs] Allow string parameters in models to be multi-line input style 2019-07-03 05:11:06 +10:00
rldhont
4a5c5f2fff
Merge pull request #30378 from rldhont/tests_pyqgsogcutils
[Tests] Add PyQgsOgcUtils
2019-07-02 09:17:32 +02:00
lbartoletti
03e8f870e4 add tests for Python qgsRound 2019-07-02 13:29:30 +10:00
Nyall Dawson
13fe327eb9 Fix cloning a vector layer loses all features if the layer is a memory layer 2019-07-02 10:10:11 +10:00
Nyall Dawson
e9fbe3a498 Fix test 2019-07-02 06:17:37 +10:00
Nyall Dawson
1164d204ee [postgres] Unit tests for citext field type 2019-07-02 06:17:37 +10:00
Nyall Dawson
aa1bc5d1f9 [needs-docs][postgres] Correctly handle binary (bytea) fields
Previously these would be silently dropped from the layers, but
we now have comprehensive support for binary fields and should
expose them.

Fix sponsored by WhereGroup
2019-07-02 06:17:37 +10:00
Nyall Dawson
074c584c54 Don't allow name-less parameters 2019-07-01 17:01:34 +10:00
Nyall Dawson
8e3287a7ee Add modeler parameter config for color parameters 2019-07-01 17:01:34 +10:00
Nyall Dawson
4dc24d1efe Allow serialization of QColor to xml in QgsXmlUtils 2019-07-01 17:01:34 +10:00
Nyall Dawson
a9788339ea Port an item type which has a parent parameter choice (layout items) for reference 2019-07-01 17:01:34 +10:00
Nyall Dawson
d83997c490 Port string parameter to new config widget 2019-07-01 17:01:34 +10:00
Nyall Dawson
477d3b1f1a Port boolean widget config dialog to new API 2019-07-01 17:01:34 +10:00
Nyall Dawson
10d6a8a122 [processing][API] Add API to QgsProcessingGuiRegistry and QgsProcessingParameterWidgetFactoryInterface
to handle creation of parameter definition widgets

Previously, these configuration widgets were all hardcoded into the Python modeler
dialog. This prevented 3rd party, plugin provided, parameters from ever being full
first class citizens in QGIS, as there was no way to allow their use as inputs to
user created models to be customised.

Now, the registry is responsible for creating the configuration widget, allowing
for 3rd party parameter types to provide their own customised configuration
widgets.

Refs #26493
2019-07-01 17:01:34 +10:00
Nyall Dawson
d96c7386b1 Allow creation of color parameters with no opacity control 2019-07-01 06:32:21 +10:00
Nyall Dawson
8fc63bff88 Remove unnecessary translation 2019-07-01 06:32:21 +10:00
Nyall Dawson
38bb5fb260 [FEATURE][processing] New parameter type for colors
Allows for algorithms which require a color value as an input
2019-07-01 06:32:21 +10:00
Blottiere Paul
ee6642477e
Merge pull request #30071 from lbartoletti/wms_tile_buffer
[server]New parameter for WMS service: tile_buffer
2019-06-28 16:22:05 +02:00
rldhont
169de69332
Merge pull request #10034 from rldhont/server-feature-id-primary-keys-revival
[Server] Use primary keys to build feature id
2019-06-28 12:08:12 +02:00
Nyall Dawson
018ca7c447 [FEATURE] New expression function "attributes"
Returns a map containing all attributes from a feature, with field
names as map keys. We've got featureful, robust support for working
with maps in expressions now, so this allows rapid conversion
of all feature attributes to a map to use with these handy
functions.
2019-06-28 13:14:17 +10:00
Nyall Dawson
a750507fd1 Replace composition converter reference images -- new legend rendering code has superior results to reference images 2019-06-28 09:45:48 +10:00
Nyall Dawson
142e5f2f01 [FEATURE][layouts] Expose setting to control margin under legend group and subgroup headings
Allows tweaking of the spacing applied under group/subgroup headings... so you can get
your layout legend looking pixel-perfect!
2019-06-28 09:45:48 +10:00
Nyall Dawson
6aeedfe20b [FEATURE][layouts] Expose choice of arrangement of legends (i.e.
symbols to the left OR symbols to the right of legend text), and
alignment for group/subgroup/item text

Allows creation of right-to-left locale friendly legends. Additionally,
we default to this right-to-left style alignment when creating new
legends under a RTL based locale.
2019-06-28 09:45:48 +10:00
Nyall Dawson
640283f700 Add new reusable combo box widget for alignment choices
QgsAlignmentComboBox presents users with a (filterable) selection
of horizontal alignment choices, e.g. left/right/center
2019-06-28 09:45:48 +10:00
Nyall Dawson
da79b6f0e6 [FEATURE][labels] New text "background" setting for marker symbol backgrounds
Allows for rendering a marker symbol in the background of labels
(complementing the existing shapes/SVG choices). This allows use
of QGIS marker symbology as a background symbol behind labels (e.g.
for highway shield labels)
2019-06-28 08:28:55 +10:00
dollarklavs
2b48a87b31 Fix WFS 2.0.0 combined with OGC HTTP URI srsName style
Refs #29391 : Added new 'else if' branch that handles OGC HTTP URL srsName style, so that epsgNr can be extracted from srsName. This doesn't fix the core issue mentionend in the Bug report #29391 though

Added branch to handle OGC HTTP URI srsName Style. Also adjusted exisiting variable names to account for the extra branch
2019-06-28 07:23:53 +10:00
Nyall Dawson
ef97fefbaa [layouts] Add API to set expression variables at a multiframe level 2019-06-28 07:12:40 +10:00
rldhont
9140312d26 [Server] wfs utils: Update the way parsing filter and adding a test 2019-06-27 14:20:17 +02:00
Even Rouault
de7e3fa8a5 [FEATURE] [OGR provider] Handle read-write support for .shz and .shp.zip with GDAL 3.1
GDAL 3.1 will bring read-write supprot for single-layer ZIP compressed shape
files (.shz), or multi-layer ones (.shp.zip). Do the few tweaking in QGIS so
that it is handled properly.

Related GDAL PR: https://github.com/OSGeo/gdal/pull/1676
2019-06-27 18:06:00 +10:00
rldhont
91d9220697 Fix storing string representations of doubles in a longlong field
results in NULL rather than converting value to longlong
with C++ test added
2019-06-27 09:50:41 +02:00
rldhont
1321c08e3e [Tests] Add PyQgsOgcUtils 2019-06-27 09:50:41 +02:00
Alessandro Pasotti
f1bd39d134
Merge pull request #30265 from troopa81/source_missing_keyColumn
Update datasource when using postgres provider so we have the key column in it
2019-06-27 09:23:07 +02:00
Alessandro Pasotti
fdc97ba61f
Fix QGIS Server WFS geometryless DescribeFeatureType (#30390)
Fixes #30381
2019-06-26 13:53:39 +02:00
Julien Cabieces
9c90fdf2f8 Remove useless blank line 2019-06-26 08:56:59 +02:00
Martin Dobias
cf2d87837b
Merge pull request #30234 from PeterPetrik/providers
[QEP 149] Introduce static data providers
2019-06-26 08:18:21 +02:00
nirvn
0e4f0c8555 [symbology] Fix broken centroid fill's force point inside polygon 2019-06-26 12:05:07 +07:00
Martin Dobias
8e56f51c23 Merge remote-tracking branch 'origin/master' into providers 2019-06-25 22:11:51 +02:00
nirvn
ffb123c6ca [testcase] Properly test resizing of locked scale map canvas 2019-06-25 09:47:48 +07:00
Alessandro Pasotti
f220a7f580 Remove redundant checks and apply recommendations 2019-06-24 12:11:51 +02:00
Alessandro Pasotti
020154ccf3 Save time with localtime and tz options
This will save a wrong time in most TZ aware
storages when an option different than UTC
is chosen, but we have no way to know that
from the widget.
2019-06-24 12:11:51 +02:00
Alessandro Pasotti
680d935852 Add tests for linestring and leap seconds 2019-06-24 12:11:51 +02:00
Alessandro Pasotti
538e294280 Fix preferred fields storage 2019-06-24 12:11:51 +02:00
Alessandro Pasotti
5c6223c2bf GPS timestamp support with tests 2019-06-24 12:11:51 +02:00
Nyall Dawson
42562c6226 Add DateTime filter support to QgsFieldProxyModel 2019-06-24 20:09:37 +10:00
Julien Cabieces
ad2d0a28da Add unit test 2019-06-24 09:07:42 +02:00
Matthias Kuhn
db18ef260f
Merge pull request #30281 from nyalldawson/text_symbol
Handle text formats in style manager
2019-06-21 16:14:16 +02:00
Matthias Kuhn
2b95707838
Merge pull request #30113 from m-kuhn/ssl_certificate_check_ssl_cleanup
Cleanup dockerfile customizations
2019-06-21 16:07:56 +02:00
Matthias Kuhn
14c21a14ad Add dxf curve tests 2019-06-21 13:14:46 +02:00
Juergen E. Fischer
88cb4d4eda dxf export: fix export of curved geometries 2019-06-21 13:14:46 +02:00
Matthias Kuhn
641a9b7276 Remove temporary ssl docker fixes 2019-06-21 12:54:47 +02:00