55730 Commits

Author SHA1 Message Date
Nyall Dawson
d35197f317 Silence some clazy warnings 2019-06-12 07:02:56 +10:00
Nyall Dawson
296bfde4d0 Don't create a provider registry instance only to delete it
Clears up more debugging noise in crssync
2019-06-12 07:02:56 +10:00
Nyall Dawson
5855204581 Silence noisy crssync under proj 6 2019-06-12 07:02:56 +10:00
Nyall Dawson
56f16ace6b Fix unnecessary proj transform construction under proj 6 in certain circumstances 2019-06-12 07:02:56 +10:00
Nyall Dawson
d2961af452 Fix datum transform prompt is not always showing after adding new layers
to a project

Fixes #29306
2019-06-12 07:02:11 +10:00
Matthias Kuhn
b34539ad6f
Merge pull request #30155 from m-kuhn/qobjectuniqueptr
QObjectUniquePtr
2019-06-11 21:07:34 +02:00
Matthias Kuhn
a9e3950841
Merge pull request #30079 from olivierdalang/fix_cad_graphical_glitches
[cad] fix graphical glitches
2019-06-11 17:38:46 +02:00
Matthias Kuhn
3f136b8920 Use QgsApplication for test 2019-06-11 15:37:59 +02:00
Matthias Kuhn
b55f22119e Add deleteLater test 2019-06-11 11:21:21 +02:00
Alessandro Pasotti
e740688faa
Merge pull request #30151 from elpaso/bugfix-gh30115-value-relation-widget-match-name-if-id-fails
When loading a QLR, try to match the layer name if id does not
2019-06-11 11:20:30 +02:00
Alessandro Pasotti
2d45ba8d68 Move the QgsProject singleton problem one step up 2019-06-11 09:22:31 +02:00
Alessandro Pasotti
6bd5c51dfc Store data provider type and layer source in the widget config 2019-06-11 09:09:48 +02:00
Alessandro Pasotti
fc20e31fa3 Add resolveByIdOrNameOnly and use it (with a test) 2019-06-11 08:50:08 +02:00
Harrissou Sant-anna
502e18fa24 Update tests for gdal warp 2019-06-11 13:43:38 +10:00
Harrissou Sant-anna
1e2b59afc4 Make the target crs optional in gdal warp algorithm [needs-docs] 2019-06-11 13:43:38 +10:00
Matthias Kuhn
0c3540c66a QCompare is not that flexible 2019-06-10 21:06:37 +02:00
Matthias Kuhn
0319476743 Compile fixes 2019-06-10 20:36:30 +02:00
Matthias Kuhn
0bd8df5945 Fix tests and docstrings 2019-06-10 19:52:00 +02:00
Matthias Kuhn
d790ab2a89 Add more tests 2019-06-10 19:31:02 +02:00
Matthias Kuhn
8f598ece69 Add some docstrings 2019-06-10 19:22:56 +02:00
Matthias Kuhn
590f654f3f Add get() and operator bool() to QObjectUniquePointer 2019-06-10 19:19:23 +02:00
Etienne Trimaille
8849cd9886 Fix label Feature request is not applied automatically 2019-06-11 03:02:02 +10:00
Alessandro Pasotti
103ef762ca Factor out generateId for layers and fix QLR mutiple layers id import 2019-06-10 17:58:22 +02:00
Matthias Kuhn
8197e00c7b Add some docs 2019-06-10 17:51:54 +02:00
Matthias Kuhn
01f2ba9e4f Add QObjectUniquePtr 2019-06-10 17:29:02 +02:00
Alessandro Pasotti
a45a82e8d7 Less autos more consts 2019-06-10 15:58:03 +02:00
Alessandro Pasotti
a295701023 ResolveLayer returns a layer instance instead of an ID 2019-06-10 15:39:52 +02:00
Alessandro Pasotti
13099cc4fa
Merge pull request #30137 from elpaso/bugfix-gh30131-postgres-json
Fix json hanlding of bools and complete json(b) PG support
2019-06-10 14:22:14 +02:00
Alessandro Pasotti
f9b50b5b38 Move layer resolver into a static method 2019-06-10 14:10:11 +02:00
Alessandro Pasotti
dcc779a62d Added a test and fix layer config in the wrapper too 2019-06-10 12:32:30 +02:00
Alessandro Pasotti
f02b1ee1d1 When loading a QLR, try to match the layer name if id does not
Fixes #30115
2019-06-10 11:47:19 +02:00
Alessandro Pasotti
ef6dd4ede6
Update src/core/qgsjsonutils.h
Co-Authored-By: Matthias Kuhn <matthias@opengis.ch>
2019-06-10 11:04:47 +02:00
Alessandro Pasotti
660e451f07 More tests for json values, fix boolean representation 2019-06-10 09:15:00 +02:00
Alessandro Pasotti
114affc549 Handle strings with chars that require escaping 2019-06-10 08:33:16 +02:00
Nyall Dawson
5201151c1c [needs-docs] Reorganise Zoom to Native action to sit next to
other layer-related zoom actions

Instead of sitting next to global map based zoom actions
2019-06-10 14:19:04 +10:00
Nyall Dawson
f00da6170f "Zoom to native resolution" action is a layer-based zoom, so add the
layer rectangle to the background of the icon to give a visual hint of this

Otherwise it's easy to mistake the action as a full map-based action
2019-06-10 14:19:04 +10:00
Nyall Dawson
5c84bbc1a5 Avoid multiple redundant requests for mapserver legends 2019-06-10 12:47:43 +10:00
Nyall Dawson
3cad7ed106 [layouts] Fix attribute table filtering to items within atlas feature
when atlas feature has a different CRS to table layer

And greatly improve performance when using an attribute table
filtered to the atlas feature
2019-06-10 12:37:47 +10:00
Nyall Dawson
182b1e1279 Use * to fetch all fields from feature services, don't list them one by one
Otherwise we often exceed the maximum size of a get query
2019-06-10 12:28:32 +10:00
Nyall Dawson
c9f8b19647 Avoid sqlite database lookup on EVERY https network request
Whenever a https network request is created, QgsAuthManager::sslCertCustomConfigByHost
is used to alter the ssl configuration according to config
stored within the sqlite authentication database. This results
in a database query being created for EVERY request, regardless
of whether a user actually has any ssl configuration set.

Instead, use a cache to avoid firing off this db query
for every request
2019-06-10 08:45:28 +10:00
Harrissou Sant-anna
352423e443 Update help Url for Core plugins in official doc 2019-06-10 08:24:55 +10:00
Nyall Dawson
762ea69cd2 [layouts] Fix filtering of attribute table to visible features
when linked map is rotated

The rotation wasn't being taken into account, which meant that
visible features weren't shown (and vice versa)
2019-06-10 08:24:11 +10:00
Alessandro Pasotti
b43c87047e
Update src/core/qgsjsonutils.h
Co-Authored-By: Matthias Kuhn <matthias@opengis.ch>
2019-06-09 16:43:35 +02:00
Alessandro Pasotti
5aa5a841cb Update test because now we are correctly returning null 2019-06-09 12:54:03 +02:00
Alessandro Pasotti
fe7f510fbf
Merge pull request #30139 from elpaso/bugfix-gh29700-histogram-crash-fwd-port
Forward port of histogram binding fix with a bonus test
2019-06-09 11:17:35 +02:00
Alessandro Pasotti
574d40a506 Fix test QCOMPARE 2019-06-09 10:47:27 +02:00
Alessandro Pasotti
79219dae23 Forward port of histogram binding fix with a bonus test
Fwd port of PR #30033
Fixes #29700

With a new test for the bug.
2019-06-09 10:25:50 +02:00
Alessandro Pasotti
d2a93501f2 Remove empty lines 2019-06-08 20:32:02 +02:00
Alessandro Pasotti
3ea542a433 Fix json hanlding of bools and complete json(b) PG support
Fixes #30131 and add tests for jsonutils
2019-06-08 20:29:48 +02:00
nirvn
192c456d4d [arcgisrest] Fix drawing of large areas for non-tiled raster layers 2019-06-08 08:03:29 +07:00