7751 Commits

Author SHA1 Message Date
Nyall Dawson
615e245b18 Add method to specify global vector simplification overrides on a
QgsMapSettings object

If specified (they default to off), these simplification settings
will override any layer-specific simplification settings, and
provide a way for specifying a global simplication to apply
to vector layers while exporting maps.
2019-08-07 15:57:26 +10:00
Nyall Dawson
238d0a0f9e Fix changing source effect properties doesn't "stick"
Fixes #31118
2019-08-07 10:35:26 +10:00
Nyall Dawson
830ec4b308 Another test 2019-08-07 09:02:28 +10:00
Nyall Dawson
75326e50af Ensure raster style is not lost when dealing with invalid layer sources 2019-08-07 09:02:28 +10:00
lbartoletti
aac1e23de0 remove debug message from test 2019-08-07 07:30:19 +10:00
lbartoletti
aaa6f65537 topologicalEditing: Fix Z for add feature 2019-08-07 07:30:19 +10:00
lbartoletti
bdbb435d09 topological editing: fix topological editing for reshape map tool 2019-08-07 07:28:08 +10:00
Alessandro Pasotti
92ac7a2e93
[server] Server api and WFS3 (#10016)
Implementation of OGC API and WFS3 core draft specification
2019-08-06 16:38:21 +02:00
Denis Rouzaud
0698eedc94
add test for detecting composite key relations (#31092) 2019-08-06 13:39:00 +02:00
Denis Rouzaud
e4faaf4988
add __repr__ for QgsMapLayer (#31108) 2019-08-06 13:36:14 +02:00
nirvn
ec75aa0300 [FEATURE][text renderer] Support vertical text orientation 2019-08-06 13:24:15 +07:00
Nyall Dawson
126ccb9736 Apply same logic regarding joined fields as is used in field calculator
to QgsFieldProxyModel set to hiding read only fields

I.e. show editable joined fields, but only if they are set to a non-hidden
editor widget
2019-08-06 13:47:41 +10:00
Juernjakob Dugge
4a1115096b Added test 2019-08-06 13:38:44 +10:00
Alessandro Pasotti
c25aeab214 Fix JSON exported bbox and precision
Fixes #31095
2019-08-05 18:50:53 +02:00
Denis Rouzaud
086fc20152
remove expected failure (#31091) 2019-08-05 15:18:05 +02:00
Matthias Kuhn
549abbfb86
Merge pull request #31047 from m-kuhn/support_loading_curved_pg_types
[db_manager] support loading mixed curved and straight type tables
2019-08-05 08:39:44 +02:00
Nyall Dawson
23164df129 Correctly emit attributeValueChanged when changing an editable joined field
Fixes edits to a joined field value aren't immediately shown in attribute tables,
and instead appear as though they were discarded (until the attribute table is
reloaded)
2019-08-05 16:20:47 +10:00
Juergen E. Fischer
06b24d164a update INSTALL.html 2019-08-04 10:35:37 +02:00
Matthias Kuhn
e7af670ff9 Promote curve 25D types to their Z equivalents 2019-08-03 07:52:40 +02:00
sklencar
f5fe4cb010 [QgsQuick] Custom filepaths for external resource widget (#30929)
* Enabled using default path for external resources.
Value (filepath) can be relative to either project path or default root according field setup/config

* [QgsQuick] Added signal of event when a captured photo is confirmed. That enables custom handling of the action by externalResourceHandler.
Renamed Ok Button of PhotoPanel.

* [QgsQuick] Cleaning source of preview image after closing it
It was causing unpleasant effect when last taken photo has been shown for a short while before previewing another.

* [QgsQuick]
Evaluate and use defaultRootPath in a config of the external resource widget.
Added a function to evaluate expressions for QgsQuick

* [QgsQuick] Use Loader to load photo panel only when its going to be used.
Also prevents for asking camera permissions on form open, when photo panel was initialized as well.

* [QgsQuick] Better wrapping of a long filenames text in the external source widget if an image is not available.

* [QgsQuick] Use canonical path in function
Symlinks are used a lot on Android, therefore its better to use canonical paths.

* [QgsQuick] formatted code.

* [QgsQuick] External source widget - changes requested in review
Fixed test and added one test case for getting relative path.

* [QgsQuick] External widget update
Added function that returns absolute path of image according widget's config - takes into account relative/absolute setting for value and default path.
Added docs about how a path can be configured and used.

* [QgsQuick] External widget update
* removed lefover property
* corrected getAbsolutePath function

* [QgsQuick] Corrected function and fixed test
Do not use canonical path for non-existing file while getting relative path.
2019-08-02 13:30:11 +02:00
Matthias Kuhn
60f4bc56e8 Add QgsWkbTypes::curveType method 2019-08-02 09:33:47 +02:00
Julien Cabieces
4f7975d2dc Fix WMS GetMap 8bit mode with transparency (#31014)
* Fix WMS GetMap 8bit mode with transparency

* Correct indentation

* Remove french text in qgs test project

* Correct render checker for 8bit image

* Remove empty line
2019-08-01 17:14:43 +02:00
Sandro Mani
0a3ec2689a Fix case of dbghelp library 2019-07-31 11:03:06 +10:00
Nyall Dawson
b9482dda6b Dox++, unit tests 2019-07-31 05:08:37 +10:00
Nyall Dawson
99fce61d3b Add unit tests for QgsUnitTypes::areaToDistanceUnit 2019-07-31 05:08:12 +10:00
nirvn
b68a9c3b81 Add tests 2019-07-30 18:06:26 +07:00
lbartoletti
794a8efc81 Fixes empty WKT. Fixes #20753, Fixes #19190, Fixes #20754 (#9645)
* Fixes empty WKT. Fixes #20753, Fixes #19190, Fixes #20754
2019-07-30 09:34:53 +02:00
nirvn
8b5ba4a0cf Fix rebase gone wrong and address review 2019-07-29 15:14:34 +07:00
nirvn
3a37c83da7 [FEATURE][layout] Add horizontal placement option for scale bar labels 2019-07-29 15:14:34 +07:00
nirvn
e5deb5517b [FEATURE][layout] Add above/below segments placement option for scale bar labels 2019-07-29 15:14:34 +07:00
Nyall Dawson
4d5fe9a086 [FEATURE][callouts] Add setting to allow callouts to be drawn to all parts
of a multi-part feature

Also data-definable!
2019-07-29 11:18:10 +10:00
rldhont
fd504337d8 [Test] PyQgsRulebasedRenderer: add more complex 2019-07-29 09:52:18 +10:00
rldhont
238e0210df [Test] PyQgsRulebasedRenderer: add more complex usedAttributes test 2019-07-29 09:52:18 +10:00
rldhont
12df8d187a [Test] PyQgsCategorizedSymbolRenderer: add more complex usedAttributes test 2019-07-29 09:52:18 +10:00
rldhont
a0f3ceefce [Test] PyQgsPointDisplacementRenderer: add usedAttributes test 2019-07-29 09:52:18 +10:00
rldhont
3955c1e047 [Test] PyQgsPointClusterRenderer: add usedAttributes test 2019-07-29 09:52:18 +10:00
rldhont
26442d4edb [Test] PyQgsRulebasedRenderer: add usedAttributes test 2019-07-29 09:52:18 +10:00
rldhont
629c3e64d2 [Test] PyQgsSingleSymbolRenderer: add usedAttributes test 2019-07-29 09:52:18 +10:00
rldhont
96e012eb43 [Test] PyQgsSymbolLayer: add usedAttributes tests 2019-07-29 09:52:18 +10:00
Nyall Dawson
ab7106ae99 [labeling][FEATURE] Allow data defined control over "label every
part of multipart features" setting
2019-07-27 20:22:50 +10:00
Nyall Dawson
3484a0246d [labeling] Add API to allow curved labels to overrun features 2019-07-26 18:24:20 +10:00
Nyall Dawson
056f1e4f3c Add method to extend a pal pointset line by a set start and end distance 2019-07-26 18:24:20 +10:00
Nyall Dawson
f2d3bdd486 [proj6] Always normalize operations, even when we are using predefined
proj coordinate operation (e.g. those stored in a project)

Fixes #30643
2019-07-26 12:52:02 +10:00
Nyall Dawson
ca13055770 Add unit tests from #30643 2019-07-26 12:52:02 +10:00
Nyall Dawson
68c4a814b4 Add unit tests from #30569 2019-07-26 12:52:02 +10:00
Matthias Kuhn
4e33bc1fcf
Merge pull request #30610 from signedav/fix_valuerelation
Fix multi-selection on value relation widget using string fields
2019-07-25 18:16:25 +02:00
David Signer
7166f77dfa handle variant as list (instead of string) when the field.type() is QVariant::List - since these values are not stored as string, the tests don't need to check the GDAL version (what shouldn't have been done before anyway because it only concerns geopackages, where this version is checked on storing data...) 2019-07-25 09:46:04 +02:00
Nyall Dawson
fe4a82939e [labeling] Fix empty segment sometimes created when using repeated labels 2019-07-25 15:11:16 +10:00
Nyall Dawson
35a35fbbb1 [labeling] Fix repeated line labels gravitate to start of line
Avoids situations like

1. Line length of 3cm
2. Repeat distance of 2cm
3. Label size is 1.5 cm

    2cm    1cm
/--Label--/----/

i.e. the labels are off center and gravitate toward line starts

Instead, we first calculate how many complete repeats we can fit
in, and then divide the line into even sections of this length,
avoiding the situation where some leftover segment of the line
end isn't big enough for the label to fit.
2019-07-25 15:11:16 +10:00
Nyall Dawson
03d561b199 [labeling] Ensure short lines (wrt font size) still generate sufficient
candidates to ensure centered placement of labels
2019-07-25 12:11:45 +10:00