46107 Commits

Author SHA1 Message Date
Nyall Dawson
0481666b77
Merge pull request #6408 from arnaud-morvan/processing_reload_fix
Processing reload fixes
2018-02-22 10:03:51 +11:00
Nyall Dawson
1eea857915 Remove use of deprecated trUtf8 method
This method was deprecated in Qt 5.0 - we need to remove
its use so that we can turn off the remaining Qt4 compatibility
switches.
2018-02-22 09:59:49 +11:00
Nyall Dawson
f144553866
Merge pull request #6399 from nyalldawson/hide_dupe
Hide 'duplicate features' actions by default
2018-02-22 09:58:30 +11:00
arnaud.morvan@camptocamp.com
5af792c1f8 [processing] Call toolbox.deleteLater to avoid slot calls after unload 2018-02-21 21:45:27 +00:00
arnaud.morvan@camptocamp.com
3718d4e65b [processing] Properly load basic providers
Processing module should only register it's own basic providers.
Note that when reloading a plugin, subclasses of ProcessingProvider remains and new ones are added,
so in such cases QgsProcessingProvider.__subclasses__() return same provider class many times.
2018-02-21 21:42:43 +00:00
arnaud.morvan@camptocamp.com
d3a4a34515 [processing] Fix slot prototype in ModelerAlgorithmProvider. Fix #18162 2018-02-21 21:42:21 +00:00
Nyall Dawson
835cca7cae [processing] More string HIG fixes 2018-02-22 06:44:17 +11:00
Nyall Dawson
bd99f6979b More dialog title HIG fixes 2018-02-22 06:44:17 +11:00
Nyall Dawson
146d408190 [processing] Add direct action to open an existing model in editor 2018-02-22 06:44:17 +11:00
Nyall Dawson
277e06ec28 [processing] Fix some message box titles 2018-02-22 06:44:17 +11:00
Nyall Dawson
f8c3f39670 [processing] Fix dependency calculation for model child algs 2018-02-21 20:34:40 +11:00
Felis Pimeja
76c21ea369 Updated and vectorized several icons (#6382) 2018-02-21 15:39:25 +07:00
Chris Crook
cb17e22596
Merge pull request #6400 from ccrook/delim_text_ui_crs
Delim text ui crs
2018-02-21 19:37:12 +13:00
Chris Crook
6759993742 Fixing up code indentation and removing spacer in dialog 2018-02-21 19:07:41 +13:00
Nyall Dawson
bb08b64a03
Merge pull request #6398 from DelazJ/QMessageBoxTitles
Updating some dialogs caption
2018-02-21 16:29:46 +11:00
nirvn
6573eb30e7 [processing] small fix in the MultipleLayerWidgetWrapper wrapper 2018-02-21 12:00:32 +07:00
Nyall Dawson
43350a9a3e Hide 'duplicate features' actions by default
Since there's a number of serious outstanding issues with these
tools, hide them by default and show them only if a QgsSettings
flag is set ("tools\showDuplicateFeatureActions").

This allows the tools to be reworked for 3.2, while still
making them accessible for users who require their functionality.
2018-02-21 14:18:55 +10:00
Harrissou Sant-anna
ed99ba9d08 Updating some dialogs caption 2018-02-21 03:35:22 +01:00
Nyall Dawson
585a4d3782 [processing] Split multiparts and explode are feature based algorithms 2018-02-21 09:16:43 +11:00
Nyall Dawson
43cd62b62f [processing] Tweak api for QgsProcessingFeatureBasedAlgorithm
Instead of returning a single QgsFeature from processFeature, we now
return a list of features.

This allows feature based algorithms which return multiple features
per input feature, e.g. "explode" type algorithms which split a
single input feature into multiple output features.
2018-02-21 09:16:43 +11:00
Juergen E. Fischer
34553d3624 fix warning 2018-02-20 20:40:35 +01:00
Jürgen Fischer
4eef948bc3
Merge pull request #6394 from neteler/patch-75
Add grass74 support
2018-02-20 20:40:20 +01:00
Chris Crook
25c4fe7c83 Clear delimited text source fields after adding to show something has happened 2018-02-21 07:07:16 +13:00
Chris Crook
3e9ce1a5bc Add CRS to delimited text source select. Fixes #11520 2018-02-21 07:07:16 +13:00
Martin Dobias
348b0cf884
Warn user when trying to move or delete selected features outside of map view (#6092)
Sometimes users may inadvertently move/delete features they are not aware
of being selected. If that is the case, extra warning message box will be shown
for confirmation.

Does not apply for deletion from attribute table - it is assumed that features
do not need to be visible when deleting from attribute table.

In QgisApp::deleteSelected() method the last argument was not used anymore,
so I have replaced it by the "checkFeaturesVisible" argument.
2018-02-20 17:55:14 +01:00
rldhont
1582073011 [BUGFIX][Server] WFS GetFeature GML: segfault with geometry null 2018-02-20 14:19:43 +01:00
Denis Rouzaud
b7194414b6
Qt 5.7 dropped pyqtWrapperType (#6393)
version would need double check though
2018-02-20 02:40:22 -09:00
Markus Neteler
2dece58b67
Add grass74 support
GRASS GIS 7.4 is the current stable version, support added
2018-02-20 12:30:24 +01:00
Denis Rouzaud
713bfd3452 add Q_ENUM for QgsRasterProjector::Precision 2018-02-20 02:00:57 -09:00
Denis Rouzaud
3d3a2dabca Revert "fix build with grass"
This reverts commit e5c9092a4cc5f4ddc0e424294a6e8b3fc44ed589.
2018-02-20 02:00:57 -09:00
Nyall Dawson
5c061668f7 Fix memory leak in task manager widget 2018-02-20 19:26:48 +11:00
Nyall Dawson
64369f8099
Merge pull request #6370 from nyalldawson/afs
ArcGIS feature server: implement provider test suite and fix issues
2018-02-20 17:24:01 +11:00
Nyall Dawson
7980f307eb Spelling 2018-02-20 14:48:06 +10:00
Nyall Dawson
5145b2c2a3 [afs] Add unit test for metadata 2018-02-20 14:32:08 +10:00
Nyall Dawson
f7559d3022 [afs] Auto populate layer metadata from provider metadata 2018-02-20 13:49:29 +10:00
Nyall Dawson
6a9f9869da Fix links are doubled in metadata widget 2018-02-20 13:46:27 +10:00
Nyall Dawson
56b1edecfa [afs] Use faster bounding box checks where possible 2018-02-20 13:20:38 +10:00
Nyall Dawson
3ffbd84f5f Add a bounding box intersection test to QgsGeometry
We only previously had methods for exact intersections - this
commit adds a new QgsGeometry.boundingBoxIntersects() method
which can be used to test if just the bounding boxes of
geometries/rectangles intersect.

It's fast, and doesn't care about invalid geometries (unlike
the exact intersects checks)
2018-02-20 13:20:38 +10:00
Nyall Dawson
9471c5d9ab [afs] More responsive cancelation for feature requests 2018-02-20 13:20:38 +10:00
Nyall Dawson
668af8ccb5 Avoid redundant error 2018-02-20 13:20:38 +10:00
Nyall Dawson
c0d4ce70f2 [afs] Don't request intersecting features from server if all
features are already locally cached
2018-02-20 13:20:38 +10:00
Nyall Dawson
a818953c93 [afs] Correctly advertise SelectAtId capability
Big speedup for attribute table loading with provider
2018-02-20 13:20:38 +10:00
Nyall Dawson
3aaf35ad30 [afs] Support interruption requests on feature iterator
Results in a huge increase in responsiveness when working with
large AFS layers
2018-02-20 13:20:38 +10:00
Nyall Dawson
1c8c461a2a [afs] Add unit test for non OBJECTID named id fields 2018-02-20 13:20:38 +10:00
Nyall Dawson
e3f55dc549 [afs] Handle layers where the id field is not named "objectid" 2018-02-20 13:20:38 +10:00
Nyall Dawson
93920d2985 [afs] Don't list layers with no Query capability in AFS source select
Since these layers cannot be queried or added to the map and should
be added as mapserver layers instead.
2018-02-20 13:20:38 +10:00
Nyall Dawson
9e023bdab2 [afs] Fix/optimise handling of filter rect feature requests
Before a filter rect request would usually force fetching every
single feature from the server before the request could be
complete.

Instead, if a filter rect is passed we first obtain a list
from the server of matching features within this rect, and
then iterate only over those.

Fixes broken (multi-minute hang) identify tool use on AFS
layers.
2018-02-20 13:20:38 +10:00
Nyall Dawson
45ded37f62 Try to fix test which fails only on Travis 2018-02-20 13:20:38 +10:00
Nyall Dawson
706266804e [afs] Don't lock shared data whilst fetching remote data
Since the fetch can be slow, there's no need to lock other
afs threads while we wait for a particular set of results to
be fetched.
2018-02-20 13:20:38 +10:00
Nyall Dawson
7307650862 Fix accidental test change 2018-02-20 13:20:38 +10:00