49367 Commits

Author SHA1 Message Date
Matthias Kuhn
8dd4b3b270
Rename freeConnectionsRequirement to requestMayBeNested 2018-08-03 09:52:42 +02:00
Denis Rouzaud
a893f52ffc fix mac build and fix native file selector 2018-08-03 08:50:32 +02:00
Denis Rouzaud
970fc4f39f add objective-c files to astyle 2018-08-03 08:50:32 +02:00
Nyall Dawson
85a7d5cb78 Add hidden setting to skip the project memory layer warning
To be used by 3rd party plugins, e.g. memory layer saver, who
may want to surpress this warning.
2018-08-03 16:50:12 +10:00
Nyall Dawson
0dc1a61e74 Warn users on closing projects with populated memory layers present
Adds a warning (with a cancel option!) when users start to close
a project containing any memory layers with features. These
layers are temporary only and their contents will be permanently
lost if the project is closed. The warning allows users to
cancel the close operation (that's the default action!) so that
they can then save these layers out to a permanent location.
2018-08-03 16:50:12 +10:00
Nyall Dawson
02bd1ccc14 Improved UX when closing projects with layers with unsaved changes
Previously, the unsaved layer warnings would come AFTER the
unsaved project warning. The unsaved layer warnings had no
cancel option, which meant that there was no way to cancel
a project close when unsaved layer edits exist, and you
were forced to either save these edits or discard them.

Now, the unsaved layer edits checks occur before the unsaved
project check, and you have the option now to 'Cancel' the
project close from the unsaved layer edits messagebox. This
allows users to cancel the project close operation if they
want to e.g. inspect manually unsaved layers to decide
what action is appropriate to take on these.

Also fixes the unsaved layer edits prompt sometimes didn't
appear, even though unsaved changes were present...
2018-08-03 16:50:12 +10:00
nirvn
e5604f976f Update the save 3D map message bar to link to files 2018-08-03 13:16:53 +07:00
nirvn
90c97033b6 Update the save vector/raster message bar to link to files 2018-08-03 13:16:53 +07:00
nirvn
9eb25bca29 Only use the native openFileExplorerAndSelectFile for files 2018-08-03 13:16:53 +07:00
nirvn
1fc6aabdcd Implement openFileExplorerAndSelectFile for Linux 2018-08-03 13:16:53 +07:00
Alexander Bruy
65ae32aadd [processing] homogenize filter strings for models and scripts 2018-08-03 08:34:05 +03:00
Alexander Bruy
3e760882b4 fix minor typo in the XML file filter string (add missed dot) 2018-08-03 06:47:22 +03:00
Juergen E. Fischer
06aff729b9 dwg import: handle filenames with utf8 characters
(cherry picked from commit dd5ed68818380dfb6590677d968ec0e17c3f39c0)
2018-08-02 18:15:07 +02:00
Matthias Kuhn
11b2683191
Thread safety for get_feature 2018-08-02 16:12:08 +02:00
Matthias Kuhn
5252bf1954
Make expression functions that use internal requests more stable 2018-08-02 13:34:45 +02:00
Matthias Kuhn
14643ad98d
Allow specifying the number of required connections
for a request. Most requests should reserve more
than a single connection (default: 3) and only
requests that are executed as nested expressions
should specify 1.
2018-08-02 13:34:45 +02:00
Matthias Kuhn
7033b54483
Add test for nested connection pool acquire freeze 2018-08-02 13:34:45 +02:00
Alexander Bruy
c81c499d44
Merge pull request #7518 from alexbruy/homogenize-param
[processing] homogenize label for "additional creation options" parameter
2018-08-02 13:57:27 +03:00
Nyall Dawson
62a56b195c Fix typo 2018-08-02 19:24:56 +10:00
Nyall Dawson
882a0c43d4 Empty shell for linux native library 2018-08-02 19:24:56 +10:00
Alexander Bruy
f524460379 [processing] homogenize label for 'additional creation options'
parameter in GDAL algorithms
2018-08-02 12:11:20 +03:00
Nyall Dawson
11171a3613 Be careful when restoring ui form paths from existing projects
Because these may have been corrupted and contain invalid paths,
which causes a network request to be sent fetching a bad url
for every vector layer
2018-08-02 07:21:35 +10:00
Nyall Dawson
ad93ccc7a2 Fix incorrect restore of ui form paths for layers when no ui form was set
Prevents an empty ui form path being set to the folder path containing the
project when a project is loaded
2018-08-02 07:21:35 +10:00
Nyall Dawson
edec245be2 Fix regression in raster psuedo ramp rendering when only two classes exist 2018-08-02 07:21:17 +10:00
rldhont
ad7417a5cc Merge pull request #7462 from tcoupin/fix-wms
[server] Multiples fixes for wms server
2018-08-01 17:15:49 +02:00
rldhont
906022e839 Fix indentation and spelling 2018-08-01 17:14:25 +02:00
rldhont
ada8933697
Merge pull request #7491 from pblottiere/server_wfs_service_version
[server] Adds ServiceTypeVersion element in WFS 1.1.0 GetCapabilities doc
2018-08-01 16:48:59 +02:00
Alexander Bruy
bbc33309a3
Merge pull request #7505 from alexbruy/network-analysis
[processing] port shortest path algs to C++
2018-08-01 13:40:31 +03:00
garnservo
9792b56aa2 Fix description by removing rotate information 2018-08-01 16:49:08 +07:00
Alexander Bruy
75394150ce [processing] drop Python versions of the shortest paths algs 2018-08-01 07:39:51 +03:00
Nyall Dawson
f0043d6b86 Try to implement openFileExplorerAndSelectFile for OSX 2018-08-01 08:20:19 +10:00
Nyall Dawson
762099b67f Add win32 native implementation, and new openFileExplorerAndSelectFile
method to QgsNative

Opens the desktop file explorer at the folder containing path,
and (if possible) scrolls to and pre-selects the file at path itself.

The default implementation just calls the QDesktopServices method to open the folder,
without selecting the specified file.

Use this to automatically select the exported layout file
when clicking the message bar success message in layouts (on Windows)
2018-08-01 07:33:45 +10:00
Nyall Dawson
1fea03fec7 [processing] Make model to/from variant methods public 2018-08-01 07:32:52 +10:00
Matthias Kuhn
01bf140763
Merge pull request #7315 from m-kuhn/confirmDeleteLinkedNm
Confirm delete when feature is still linked
2018-07-31 17:49:29 +02:00
Matthias Kuhn
4ce0182ff8
Avoid unexpected garbage collector 2018-07-31 16:28:55 +02:00
Alessandro Pasotti
c1eef4e030
Merge pull request #7508 from elpaso/highlight-properties
Add properties to QgsHighlight for easier animations
2018-07-31 15:49:21 +02:00
Alessandro Pasotti
6a4aee82db Code layout 2018-07-31 13:06:48 +02:00
Alessandro Pasotti
222fe2362e Add properties to QgsHighlight for easier animations 2018-07-31 10:23:27 +02:00
H Tveite
70b53fb484 Updated the expected/voronoi_buffer.gml file in testdata to reflect the new (and hopefully correct behaviour 2018-07-31 08:47:28 +10:00
H Tveite
c38c6dab85 Removed import of QgsProcessingParameterDistance as it is not used anymore 2018-07-31 08:47:28 +10:00
H Tveite
30f5983984 Attemp to fix wrong behaviour of VoronoiPolygon when buffer is specified (issue #18219(?), #8002(?), #13092) 2018-07-31 08:47:28 +10:00
Håvard Tveite
72dcd14a42 Update VoronoiPolygons.py
Width and height were mixed up.  Fixed.
2018-07-31 08:47:28 +10:00
Nyall Dawson
df05369dbf Hack is still required, but maybe using non-deprecated api will help?
Sometimes qt is great, sometimes I want to punch it in it's silly
little cute face
2018-07-31 05:12:59 +10:00
Nyall Dawson
a87a7b72df [layouts] Attempted fix for direct printing page orientation issues
Seems the earlier hack may no longer be valid for Qt5.

Fixes #18398, #18994, #19142, #19279
2018-07-31 05:12:59 +10:00
Martin Dobias
40ce1518ea Fixes after the reviews 2018-07-30 18:29:51 +02:00
Martin Dobias
6482a3b4d0 [FEATURE] Simple rendering of 3D linestrings
This mode of 3D line rendering will use OpenGL line rendering
instead of buffering lines into polygons and rendering them as meshes.

The advantage is that the 3D lines do not loose their Z coordinate
which is the case currently with "ordinary" 3D rendering after buffering.

The disadvantage is that the lines cannot be wide (supported in Qt3D only
since 5.10, but even then their rendering won't have nice joins/caps)
and only ambient color is used from the material.
2018-07-30 18:29:51 +02:00
Alexander Bruy
72d13ac0f8 [processing] port shortest path (layer to point) alg to c++ 2018-07-30 15:15:04 +03:00
Alexander Bruy
d999923da9 [processing] port shortest path (point to layer) alg to c++ 2018-07-30 15:15:04 +03:00
Alexander Bruy
be3b2c8ff8 [processing] base class for network analysis algorithms 2018-07-30 15:15:04 +03:00
Alexander Bruy
a6901edb9b [processing] port shortest path (point to point) alg to c++ 2018-07-30 15:15:03 +03:00