41290 Commits

Author SHA1 Message Date
Nyall Dawson
640a27b4ea Drop python Select/Extract by Location algs 2017-09-08 20:34:52 +10:00
Nyall Dawson
f4b9bbd8ab Swap unit tests to use native algorithms 2017-09-08 20:32:12 +10:00
Nyall Dawson
cecdf33614 Native c++ Extract by Location algorithm 2017-09-08 20:20:49 +10:00
Nyall Dawson
f799d3afc8 Move allFeatureIds from QgsVectorLayer to QgsFeatureSource 2017-09-08 20:09:29 +10:00
Nyall Dawson
1aa76ac175 Port Select by Location to c++ 2017-09-08 17:40:36 +10:00
Nyall Dawson
a9f4540081 Remove 'precision' option from spatial relation processing algs
Rationale:
- the correct use for this option is unclear, and users are
mistakenly using it as a 'tolerance' option
- it's very likely to generate invalid geometries as a result
of the snapping, causing unreliable results

Given these substantial issues, it's safer to remove this
option and require that users who need the snap to grid
precision change explicitly do this via an extra model
step before running the algorithm.
2017-09-08 16:48:59 +10:00
Nyall Dawson
24a4ab7f0d Rework Select by Location algorithm
Changes:

- handle different CRS transparently

- don't build a spatial index on the selection layer. Instead
only use feature requests to fetch features which are within
the desired bounds, and rely on the presence of an appropriate
spatial index at the provider's backend. Otherwise, we force
every user of this algorithm to have a full iteration of the
source table, regardless of how large the table is. That means
that trying to select a set of addresses which fall within
a specific locality from a table which contains the addresses
for a whole state will FORCE every address in the state to
be initially read before any calculation begins. With this
change only those features within the bounding box of the
selected localities will ever be fetched from the provider,
resulting in huge speed improvements for the algorithm.

- use prepared geometries for the spatial relation tests.
This dramatically speeds up the algorithm in the case
where the intersection layer features cover multiple
features from the 'selection' layer.

- Add a 'select within current selection' mode

- Optimise feature requests for efficiency (especially
with respect to the 'disjoint' selection mode)
2017-09-08 16:48:59 +10:00
Blottiere Paul
20d824413e Merge pull request #5094 from pblottiere/trust2
[FEATURE] Trust project option
2017-09-07 16:21:37 +01:00
Blottiere Paul
437aefa32a Move trust checkbox in data sources tab 2017-09-07 09:44:36 +01:00
Blottiere Paul
456ca000a7 Rename methods 2017-09-06 15:22:39 +01:00
Blottiere Paul
76b2b8eed3 Add some tests 2017-09-06 15:22:39 +01:00
Blottiere Paul
8a17a608e1 Trust is now a project option instead of a global option 2017-09-06 15:22:38 +01:00
Harrissou Sant-anna
a0e6b7fde0 Code cleanup
Remove already declared groups in header
2017-09-06 15:58:27 +02:00
Blottiere Paul
7ef2e7046e Some cleanup and renaming 2017-09-06 14:46:37 +01:00
Blottiere Paul
eb725f3305 Do not update extent by default if trust project option is activated 2017-09-06 14:46:37 +01:00
Blottiere Paul
b55c134926 Do not check primary key unicity on views when trustProject option is activated 2017-09-06 14:46:37 +01:00
Blottiere Paul
4a084bf961 Add tests 2017-09-06 14:46:37 +01:00
Blottiere Paul
384e85ca77 Add option on layer to read extent from xml in case of data source without metadata 2017-09-06 14:46:37 +01:00
Blottiere Paul
21c5f3d36c Fix extent writing in project file 2017-09-06 14:46:37 +01:00
Blottiere Paul
5b5dc9545d Add an enum for postgres relation kind 2017-09-06 14:46:37 +01:00
Blottiere Paul
088acdba40 Extent for vector layers should not be read from qgis project by default 2017-09-06 14:46:37 +01:00
Blottiere Paul
3b5236cbe5 [needs-doc] Add Trust Project option 2017-09-06 14:46:37 +01:00
Harrissou Sant-anna
59d758280e Add help link for OWS Server tab 2017-09-06 11:37:25 +02:00
Harrissou Sant-anna
02c43445ce Set the most accurate User Manual page to Project Properties tabs
Because some of the tabs in the dialog have a dedicated chapter where they are fully described, better use those links instead of the global one.
2017-09-06 11:37:25 +02:00
Matthias Kuhn
f0cf4c3ee8 Merge pull request #5137 from m-kuhn/expressionhistory
[FEATURE] History for attribute table form view display expressions
2017-09-06 11:36:04 +02:00
Matthias Kuhn
6f9be4de0f
[travis] Fail fast on error 2017-09-06 10:46:59 +02:00
Matthias Kuhn
ee75d8cd14
Fix build with Qt 5.5 2017-09-06 10:46:59 +02:00
Matthias Kuhn
b3c15900c1 [travis] Stop building on errors 2017-09-06 10:14:33 +02:00
Matthias Kuhn
a09839081c
[travis] Fold build output 2017-09-06 09:17:31 +02:00
Matthias Kuhn
33f0a604a8
[travis] Workaround timeouts 2017-09-06 09:15:31 +02:00
Blottiere Paul
3b839ceb43 Merge pull request #5084 from pblottiere/server_bugfix_ogc_mode
[server][bugfix] Fixes OGC test on getmap:each-format mode for 1bit/8bit/16bit
2017-09-06 08:14:34 +01:00
Blottiere Paul
eb9e2ace75 Add some tests 2017-09-06 07:28:39 +01:00
Blottiere Paul
25accbcbdb Fix OGC test getmap:each-format mode for 1bit/8bit/16bit 2017-09-06 07:28:39 +01:00
Nyall Dawson
2e20b6f69b Merge pull request #4720 from nyalldawson/ref_geom
Template based referenced geometry class
2017-09-06 13:51:31 +10:00
Nyall Dawson
f1313af914 Add some more unit tests 2017-09-06 11:25:17 +10:00
Nyall Dawson
f12bb74b58 Add missing docs 2017-09-06 11:25:16 +10:00
Nyall Dawson
1e1ed8a462 Add unit tests for referenced geometries 2017-09-06 11:25:16 +10:00
Nyall Dawson
6ab7ebadec Metatype Qgs(Referenced)Rectangle/PointXY 2017-09-06 11:25:16 +10:00
Nyall Dawson
1194b5abea Use inheritance rather than composition for QgsReferencedGeometries
See https://github.com/qgis/QGIS/pull/4720#issuecomment-308652392
for discussion of the rationale
2017-09-06 11:25:16 +10:00
Nyall Dawson
e926f345e8 Update sip 2017-09-06 11:25:16 +10:00
Denis Rouzaud
8053b96ec0 fix constructor and skip method with same python signature 2017-09-06 11:25:16 +10:00
Nyall Dawson
1a961e8045 Template based referenced geometry class 2017-09-06 11:25:16 +10:00
Nyall Dawson
9502022bb5 Merge pull request #5141 from nyalldawson/disable_osx_travis
Disable Travis OSX builds
2017-09-06 11:20:47 +10:00
Nyall Dawson
2830f31e8b Disable Travis OSX builds
They are broken and ignored at the moment, but still
causing a massive backlog and delay in obtaining
the valid test results
2017-09-06 09:10:49 +10:00
Nyall Dawson
e464c76b64 Merge pull request #5110 from nyalldawson/ogr_crs
[ogr] Don't try to calculate CRS for geometryless layers
2017-09-06 04:23:04 +10:00
Nyall Dawson
a11e0c6687 Merge pull request #5130 from nyalldawson/deprecated
Fix use of some deprecated Qt methods
2017-09-06 04:22:40 +10:00
Nyall Dawson
26b9c043b4 Merge pull request #5116 from nyalldawson/remove_transect
Remove QgsTransectSample
2017-09-06 04:22:00 +10:00
Alessandro Pasotti
5f5be25357 Merge pull request #5124 from boundlessgeo/providers_gui_config
Providers gui config
2017-09-05 19:27:47 +02:00
Matthias Kuhn
1d0de6028e
Remove generic debug noise 2017-09-05 18:19:36 +02:00
Matthias Kuhn
ff2c109d3d
Make ogr a bit less verbose 2017-09-05 18:19:36 +02:00