56223 Commits

Author SHA1 Message Date
nirvn
ea27d55905 [arcgisrest] Only show 'all layers' item for the AMS provider 2019-06-28 11:46:46 +07:00
Nyall Dawson
fcd0615cf3 Fix incorrect expression error when using a function with all optional parameters and none are specified 2019-06-28 13:14:17 +10: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
99d6524407 Dox++ 2019-06-28 09:45:48 +10:00
Nyall Dawson
ca1f255973 Remove remaining atom/nucleon references 2019-06-28 09:45:48 +10:00
Nyall Dawson
03af890132 Address review comments 2019-06-28 09:45:48 +10:00
Nyall Dawson
27f9bf66d6 Spelling 2019-06-28 09:45:48 +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
995f29f8e7 Further legend positioning fixes 2019-06-28 09:45:48 +10:00
Nyall Dawson
81ea3f3744 Tweak grid arrangement 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
ec86fcef8d Address review comments 2019-06-28 08:28:55 +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
Juergen E. Fischer
0bc48b7b6a packaging update after static providers 2019-06-27 23:34:07 +02: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
9cc9f70001 [layouts] Make sure changes in the item variable editor when a multiframe
item is selected (i.e. HTML items, attribute tables) are saved
on a multiframe level, instead of an individual frame level.

In this case we prefer to make the multiframe's scope the main, editable
one. That's because most expressions are evaluated on the multiframe
subclass level, not on a frame-by-frame basis.

Ideally both would be editable, but for now let's go with the most
useful one.
2019-06-28 07:12:40 +10:00
Nyall Dawson
ef97fefbaa [layouts] Add API to set expression variables at a multiframe level 2019-06-28 07:12:40 +10:00
Nyall Dawson
ac1c66c8ed [layouts] Fix incorrect item variables shown when clicking from
one layout item to another

(the previous values were still shown)
2019-06-28 07:12:40 +10:00
Alessandro Pasotti
e9d1a6d325 Fix json(b) representation on feature identify 2019-06-27 18:45:10 +02:00
rldhont
2a6f5688fb [Server] Do not expose QgsServerFeatureId to python binding 2019-06-27 14:20:17 +02:00
rldhont
affc517928 [Server] WFS GetFeature: use const reference of feature to build response 2019-06-27 14:20:17 +02:00
rldhont
9140312d26 [Server] wfs utils: Update the way parsing filter and adding a test 2019-06-27 14:20:17 +02:00
rldhont
d02e6db28c [Server] Use primary keys to build feature id
This is a revival of Server: if there is a primary key, use the pk value(s) as gml id instead of the feature id. #6279

In WFS and in WMS GetFeatureInfo (format GML), there is a 'fid' Attribute with a feature identification. Currently, we are using the QGIS feature id there. However, the postgres provider uses an id/value map for some data types (e.g. bigint in 2.18). Therefore, the feature id depends on the fetching order and might not be stable between different requests. So clients cannot use the fid for feature identification.

This PR fixes that such that primary key values are preferred for the fid. If the data provider does not report any PK columns, there is a fallback to the QGIS feature id.
2019-06-27 14:20:17 +02:00
Juergen E. Fischer
6bdb259627 translation string fix 2019-06-27 13:58:46 +02:00
nirvn
0590c77c15 [arcgisrest] Only show an 'all layers' mapserver item when multiple layers offered 2019-06-27 18:56:31 +07:00
nirvn
f852c80bd1 [arcgisrest] Fix mapserver legend vertical size for large (i.e. hidpi) fonts 2019-06-27 18:56:31 +07:00
nirvn
45380dc2fe [arcgisrest] Fix clipped mapserver legend image 2019-06-27 18:56:31 +07:00
Alexander Bruy
509ab2985c
Merge pull request #30443 from alexbruy/batch-fix
use correct method name in the batch input selector for vector layers (fix #30410)
2019-06-27 14:52:11 +03:00
Martin Dobias
0a7386e6da [TilesXYZ] Add metatile size parameter
Larger values may speed up the rendering and provide better labelling (fewer gaps without labels)
at the expense of using more memory.

Ported from XYZ Tiles plugin - originally contributed by @nurenda
2019-06-27 13:37:50 +02:00
Martin Dobias
0e782645e2 Revert the leftovers that were added in QgsDataItemProvider cpp/h 2019-06-27 12:55:07 +02:00
Martin Dobias
78a638f769 Use lambdas to pass data items as captured variables 2019-06-27 12:55:07 +02:00
Martin Dobias
173ed6cae7 Add confirmation message boxes for deletion of connections 2019-06-27 12:55:07 +02:00
Martin Dobias
4dcad30c56 [wcs] Move GUI parts of data items to QgsDataItemGuiProvider subclass 2019-06-27 12:55:07 +02:00
Martin Dobias
c8a3a33835 [wcs] Move gui related stuff to a new file 2019-06-27 12:55:07 +02:00
Martin Dobias
ebc1a2ba31 [wfs] Move GUI parts of data items to QgsDataItemGuiProvider subclass 2019-06-27 12:55:07 +02:00
Martin Dobias
31420d4101 [wfs] Move gui-related stuff to a new file 2019-06-27 12:55:07 +02:00
Martin Dobias
f4b1b83af2 [wms] Move GUI parts of data items to QgsDataItemGuiProvider subclasses 2019-06-27 12:55:07 +02:00
Martin Dobias
764fa5966f Move gui-related metadata to a new file 2019-06-27 12:55:07 +02:00
Alexander Bruy
49d0e996a7 use correct method name in the batch input selector for vector layers (fix #30410) 2019-06-27 12:38:30 +03: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
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
7761f5f0fe
Merge pull request #30391 from troopa81/executesql_raise_unknown_geom
Raise an exception when geometry field autodetection has failed
2019-06-27 09:22:36 +02:00
Nyall Dawson
a45a6f484d Fix potential crash on exit
Fixes #30399
2019-06-27 16:18:53 +10:00
Nyall Dawson
94da97089f Fix ui build warning 2019-06-27 10:44:47 +10:00
nirvn
871536162c [arcgisrest] Fix crash when fetching an image errors out 2019-06-27 10:43:50 +10:00
nirvn
718f21e807 [arcgisrest] Fix root of a mapserver not recognized as layer 2019-06-27 10:43:50 +10:00
Nyall Dawson
cd5e9a9adc Also use 'title' as a candidate for good field names for identifying features 2019-06-27 08:33:27 +10:00
Larry Shaffer
5bed72760f Fix __MAC_OS_X_VERSION_MAX_ALLOWED comparison in dark theme function
Version comparison needs to be numeric, in case __MAC_10_10_4 is not
defined, e.g. some pre-10.14 SDKs

Forward port of #8938
2019-06-27 07:25:23 +10:00