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
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
Nyall Dawson
4af24bf878
More provider check handling of extra fields
2018-02-20 13:20:38 +10:00
Nyall Dawson
7711f1335a
[afs] Ensure that null attributes are correctly mapped for PyQGIS
2018-02-20 13:20:38 +10:00
Nyall Dawson
7d620e28f1
Make feature source/provider test handle additional fields
2018-02-20 13:20:38 +10:00
Nyall Dawson
922776bf14
[afs] Fix crash when requesting invalid feature ID
2018-02-20 13:20:38 +10:00
Nyall Dawson
87207dde79
[afs] Fix provider ignores FilterFids requests and returns
...
incorrect features
2018-02-20 13:20:38 +10:00
Nyall Dawson
394e1a1bb1
[afs] Remove unused code
2018-02-20 13:20:37 +10:00
Nyall Dawson
1e95433ac3
Better geometry memory management for afs provider
2018-02-20 13:20:37 +10:00
Nyall Dawson
8b0b826df9
[afs] Correctly convert attribute values to field type
...
Avoids AFS provider returning double values for integer
and long field types
2018-02-20 13:20:37 +10:00
Nyall Dawson
d87738be22
Avoid some detaches in AFS iterator
2018-02-20 13:20:37 +10:00
Nyall Dawson
258527ccd2
Don't try to run provider tests which require subsetStrings on providers which don't support them
2018-02-20 13:20:37 +10:00
Nyall Dawson
c6f7a07f88
Simplify QgsVectorDataProvider::fillMinMaxCache()
2018-02-20 13:20:37 +10:00
Nyall Dawson
10ceac60ac
Exempt AFS provider from certain provider tests
2018-02-20 13:20:37 +10:00
Nyall Dawson
5f12bd5c27
[afs] Correctly return an invalid feature from closed iterators
2018-02-20 13:20:37 +10:00
Nyall Dawson
b434ab10eb
Start implementing the provider test suite for ArcGIS Feature Server provider
2018-02-20 13:20:37 +10:00
Nyall Dawson
227689aced
[afs] Fix provider incorrectly overrides provider name and description
...
with layer name and description
2018-02-20 13:20:37 +10:00
Nyall Dawson
e3fbb4cbe8
Merge pull request #6390 from nyalldawson/provider_metadata
...
Support reading layer metadata from data provider
2018-02-20 14:09:20 +11:00
Nyall Dawson
1da2da219a
Fix build
2018-02-20 11:31:33 +10:00
Nyall Dawson
3d4f6f82bb
Followup 0548f4, fixes to layer metadata and metadata widget
...
Address outstanding review requests so that this PR can be merged
2018-02-20 11:10:55 +10:00
mj10777
0548f4267e
Added QgsLayerMetadata logic to QgsDataProvider. Added setMetadata in QgsVector/RasterLayer::setDataProvider. Corrections in QgsMetadataWidget with added get/setMetadata and hasChanged functions plus checking for set mLayer pointer before use.
2018-02-20 11:06:57 +10:00
Nyall Dawson
2571de37bb
Fix some undersized widgets on hidpi win builds
2018-02-20 11:01:21 +11:00