55255 Commits

Author SHA1 Message Date
Matthias Kuhn
a55c25bbeb Allow adding attachments in qgz files 2019-05-15 08:21:49 +02:00
Alexander Bruy
5844a0fc90 [processing] allow selecting input from open layers only if input is a
layer-type (e.g. raster, vector, mesh). All other inputs can be selected
only from filesystem
2019-05-14 15:36:48 +03:00
Nyall Dawson
449c9ce86c Better thread safety in package layers alg 2019-05-14 20:46:26 +10:00
Nyall Dawson
2d644376be [FEATURE][processing] Add "Save layer styles into GeoPackage" option for Package Layers algorithm
Allows embedding of the current layer styles into the packaged layers
as the default layer styles.
2019-05-14 20:46:26 +10:00
Nyall Dawson
95f8bfb8af [processing] Fix error reporting in package layers algorithm 2019-05-14 20:46:26 +10:00
Nyall Dawson
f0218316f6 Avoid unnecessary calculations in SVG fill symbol cloning
Minor speed boost
2019-05-14 20:45:46 +10:00
Matthias Kuhn
b95b954bf8
Merge pull request #9993 from 3nids/fixembedded
fix issues with embedded layers
2019-05-14 08:28:30 +02:00
Nyall Dawson
228ff9a64b Capitalization 2019-05-14 10:36:07 +10:00
Nyall Dawson
958dbb13ca Guard against nullptr 2019-05-14 09:28:14 +10:00
Denis Rouzaud
41e8dff118 fix restoring visibility of layers in embedded groups 2019-05-13 16:04:34 -05:00
Denis Rouzaud
ef6d6d495a add test for layer visibility in embedded group 2019-05-13 16:03:01 -05:00
Nyall Dawson
2ec429cb89 [FEATURE][processing] New algorithm "Overlap analysis"
This algorithm calculates the area and percentage cover
by which features from an input layer are overlapped by
features from a selection of overlay layers.

New attributes are added to the output layer reporting
the total area of overlap and percentage of the input
feature overlapped by each of the selected overlay layers.

This is quite a common GIS task request, yet is full
of traps for inexperienced users, and the amount of
manual data work usually done by users to calculate
these figures can often lead to mistakes and inaccurate
results. It's nice to have a robust, fast, inbuilt
algorithm which allows this task to be done in a
single step without risk of human error.
2019-05-14 06:13:10 +10:00
Alessandro Pasotti
56a6edf3ac
Merge pull request #9989 from elpaso/wfs3-ogr-client
Add WFS3 (experimental) to supported OGR protocols
2019-05-13 16:50:32 +02:00
Alessandro Pasotti
b554b74deb Add WFS3 (experimental) to supported OGR protocols
Quickest way to implement a test client.
2019-05-13 14:48:53 +02:00
Matthias Kuhn
e693e81053
Merge pull request #9971 from olivierdalang/node-tool-chain-add
[nodetool] chained add vertex at endpoint
2019-05-13 14:15:03 +02:00
Matthias Kuhn
6a3cd82d9c
Merge pull request #9908 from raymondnijssen/roundextent
Round values in ExtentFromLayer processing algorithm
2019-05-13 10:12:30 +02:00
Nyall Dawson
84a98917fe Remove leftover code 2019-05-13 16:26:26 +10:00
Nyall Dawson
e409c31d38 Use proj to identify auth/codes from a proj string, instead of
QGIS' internal crs db
2019-05-13 16:26:26 +10:00
Nyall Dawson
ccb8e164d4 Always get full proj string, including towgs parameters
See https://lists.osgeo.org/pipermail/proj/2019-May/008565.html

Fixes some unit test failures
2019-05-13 16:26:26 +10:00
Nyall Dawson
83adb92eab Ensure that temporary map canvas atlas variables are never written to projects
Causes a crash on debug builds, and is generally undesirable anyway
2019-05-13 14:36:10 +10:00
Nyall Dawson
279139b4ac Avoid crashes on debug builds when trying to write xml for more value types 2019-05-13 14:36:10 +10:00
Nyall Dawson
4db0f5bf6c More proj6 test fixes 2019-05-13 10:38:26 +10:00
Nyall Dawson
fcf59bb471 Try to fix proj4 build 2019-05-13 10:38:26 +10:00
Nyall Dawson
2debb89c2c Indentation 2019-05-13 10:38:26 +10:00
Nyall Dawson
0b8e38e780 Leave broken code in place for now, it can't hurt, can it? 2019-05-13 10:38:26 +10:00
Nyall Dawson
0a7f5fcd46 Disable some tests, add some temporary results for now 2019-05-13 10:38:26 +10:00
Nyall Dawson
d42baf4931 Be less fussy when matching proj strings to auth/code from qgis db on proj 6
The db has many more entries, and ideally the matching using qgis db
is going to be removed asap (as soon as proj can correctly perform
this identification itself)
2019-05-13 10:38:26 +10:00
Nyall Dawson
20c458feb7 Failed attempt to use proj to identify auth/codes from proj strings 2019-05-13 10:38:26 +10:00
Nyall Dawson
6fe2450252 Fallback to regex to get ellipsoid and op code from proj string -- not possible from proj api 2019-05-13 10:38:26 +10:00
Nyall Dawson
60d6ec1d14 Crs sync work 2019-05-13 10:38:26 +10:00
Nyall Dawson
1fac288e29 Add method to get SingleCrs from crs 2019-05-13 10:38:26 +10:00
Nyall Dawson
18fb3f2bad Wip conversion to proj6 db instead of gdal csv files for population of CRS db 2019-05-13 10:38:26 +10:00
Nyall Dawson
8c132299c3 Remove old manual crs db overrides 2019-05-13 10:38:26 +10:00
Juergen E. Fischer
e9a80d6799 fix build 2019-05-12 17:19:50 +02:00
Nyall Dawson
f56429a392 Tiny bit of extra safety 2019-05-12 15:00:25 +10:00
Nyall Dawson
9cde65457b Ensure correct thread locale QgsNetworkAccessManager is used during
o2 requests

Otherwise the main thread manager is always used, resulting in
lots of warnings and potential crashes
2019-05-12 15:00:25 +10:00
Nyall Dawson
ba8f8e3f07 [o2] A new refresh_token is not a mandatory part of the response
after requesting a refresh

The server will always return a new access_token, but returning
a new refresh_token is optional
2019-05-12 15:00:25 +10:00
Chris Mayo
152a556887 INSTALL: document Python 3 as a build tool
Needed for scripts/process_function_template.py run by
src/core/CMakeLists.txt.

Enforced since commit:
f16fe73476 ("Python is a hard build time dependency", 2015-09-20)
2019-05-11 09:01:58 +02:00
Raymond Nijssen
6e62c0246d tests for rounded values in polygonfromlayerextent algorithm 2019-05-11 08:42:27 +02:00
Raymond Nijssen
59367618cd improved description 2019-05-11 08:39:41 +02:00
Raymond Nijssen
95c8cfed5f use distance instead of number parameter, and set advanced flag 2019-05-11 08:39:41 +02:00
Raymond Nijssen
a6d9d26e7d fix keyword 2019-05-11 08:39:41 +02:00
Raymond Nijssen
052db03919 Round values in ExtentFromLayer processing algorithm 2019-05-11 08:39:41 +02:00
Alessandro Pasotti
d174840e05
Merge pull request #9970 from elpaso/bugfix-fix-plugin-deps
Fix plugin dependencies
2019-05-10 11:33:38 +02:00
Alessandro Pasotti
9a612d4e19
Merge pull request #9832 from elpaso/qjson-nlohmann
Fast (and beautiful) json serializing
2019-05-10 11:33:10 +02:00
Alessandro Pasotti
46a4435e65 Use a function to access plugins_metadata_parser global object 2019-05-10 10:21:05 +02:00
nirvn
89693606bf [themes] Fix field expression widget not playing nice with themes 2019-05-10 15:16:56 +07:00
Alessandro Pasotti
0081ad026a Faster build times with fwd include 2019-05-10 09:37:25 +02:00
Nyall Dawson
2a457f0e44 Use a message bar in Style Manager dialog to avoid annoying
success message boxes after performing import actions
2019-05-10 13:46:32 +10:00
Nyall Dawson
85ff9aea31 Add method to retrieve map extent to QgsRenderContext
Previously only a "layer clipping extent" was available for retrieval
from a QgsRenderContext instance, yet there's a need for rendering
operations to have access to the original full extent of the map
being rendered.
2019-05-10 06:31:00 +10:00