41157 Commits

Author SHA1 Message Date
Blottiere Paul
e008f5881b Request without attributes 2017-08-28 14:09:58 +01:00
Blottiere Paul
cbeb8b27e5 Improve performance 2017-08-28 14:09:57 +01:00
Blottiere Paul
1fb88a778c QgsVectorLayerJoinBuffer inherits from QgsFeatureSink 2017-08-28 14:09:57 +01:00
Blottiere Paul
f27764d2ba Replace if by switch 2017-08-28 14:09:57 +01:00
Blottiere Paul
b6e42c7d2b Move join intelligence in QgsVectorlayerJoinBuffer 2017-08-28 14:09:57 +01:00
Blottiere Paul
500348eec3 Add some const 2017-08-28 14:09:57 +01:00
Blottiere Paul
64aa40510d Update tests 2017-08-28 14:09:57 +01:00
Blottiere Paul
11c62ca205 A joined feature is added only when one of its field is not null 2017-08-28 14:09:57 +01:00
Blottiere Paul
927dea3c18 Add tests 2017-08-28 14:09:57 +01:00
Blottiere Paul
3ba138bff9 Joined features are created on changeAttributeValue when upsertOnEdit is activated 2017-08-28 14:09:57 +01:00
Blottiere Paul
94d7e75a7e Fix spell check 2017-08-28 14:09:57 +01:00
Blottiere Paul
9df519f13f Update vector layer properties ui list for join 2017-08-28 14:09:57 +01:00
Blottiere Paul
3a0ab2380e Add some tooltips 2017-08-28 14:09:57 +01:00
Blottiere Paul
5c5006c755 Add icons for joins status in attribute form 2017-08-28 14:09:57 +01:00
Blottiere Paul
d4789db19a Fix tests 2017-08-28 14:09:56 +01:00
Blottiere Paul
e0c708c8a1 Initialize attributes 2017-08-28 14:09:56 +01:00
Blottiere Paul
8b70d7fa4b Rename setDeleteCascade/isDeleteCascade in setCascadedDelete/hasCascadedDelete 2017-08-28 14:09:56 +01:00
Blottiere Paul
97ad226f64 Rename isUpsertOnEdit in hasUpsertOnEdit 2017-08-28 14:09:56 +01:00
Blottiere Paul
cad038b1bf Initialize joined feature properly 2017-08-28 14:09:56 +01:00
Blottiere Paul
4be1cc0067 Add tests for deleteCascade option 2017-08-28 14:09:56 +01:00
Blottiere Paul
293f0f41ba Implements deleteCascade option 2017-08-28 14:09:56 +01:00
Blottiere Paul
f92c23fdfb Small cleanup 2017-08-28 14:09:56 +01:00
Blottiere Paul
cf5ab4b0f1 Add tests for upsertOnEdit option 2017-08-28 14:09:55 +01:00
Blottiere Paul
c347055d82 Update sip binding 2017-08-28 14:09:55 +01:00
Blottiere Paul
1c402ef421 Implements upsertOnEdit option 2017-08-28 14:09:55 +01:00
Blottiere Paul
db11248b1d Fix column name in join configuration 2017-08-28 14:09:55 +01:00
Blottiere Paul
b8a90ca458 Add tests 2017-08-28 14:09:55 +01:00
Blottiere Paul
477775a5d7 [FEATURE] Joined fields are editable if the option is activated 2017-08-28 14:09:55 +01:00
Blottiere Paul
e92f59ca06 Update sip binding 2017-08-28 14:09:55 +01:00
Blottiere Paul
1897bec2a8 [needs-doc] Add editable/upsert on edit/delete cascade options 2017-08-28 14:09:55 +01:00
Sandro Santilli
55a01dcb17 Simplify linearizeArc code dropping useless conditionals 2017-08-28 10:45:18 +02:00
Alessandro Pasotti
487adb45f6 Removed some GDAL version ifdefs
Now that 2.1 is required
2017-08-28 09:25:36 +02:00
Mathieu Pellerin
14388479e3 Merge pull request #5070 from nirvn/open_raster_imp
Open raster layer UI improvements
2017-08-28 10:01:03 +07:00
nirvn
095bcae01d use a QgsFileWidget in open vector layer UI 2017-08-28 10:00:06 +07:00
nirvn
35765326aa harmonize open raster and open vector UIs 2017-08-28 09:42:19 +07:00
nirvn
0dfdb6f3f4 fix open raster not focusing on raster data source manager tab 2017-08-28 09:42:19 +07:00
Nyall Dawson
d476abf5a7 Merge pull request #5054 from nyalldawson/canvas_select
Ensure canvas has focus if nothing else has
2017-08-27 15:23:01 +10:00
Clément MARCEL
37052db39a Fix crash when closing a project with layers in edition (fixes #16771)
Delete layers from project & not through layers tree, avoiding
double deletion of layers.
2017-08-27 15:22:13 +10:00
Nyall Dawson
5e945461fe Merge pull request #5074 from nyalldawson/cleanup
Remove some redundant and unused MathUtils methods
2017-08-26 14:03:01 +10:00
Sandro Santilli
650cf6a3fd Remove line segmentation test checking for control point containement
There are more tests in dedicated file (testqgscurve.cpp)
2017-08-25 23:06:52 +02:00
Sandro Santilli
5186c385c4 Expect centroid obtained by not forcing inclusion of control point 2017-08-25 23:06:52 +02:00
Sandro Santilli
c51db212ee Do not expect forced control point in output 2017-08-25 23:06:52 +02:00
Sandro Santilli
8c8426fc6a Do not force inclusion of control point
This reverts commit dae9d025293c217628def8eb8d196238d2218ddc.
2017-08-25 23:06:52 +02:00
Sandro Santilli
8363d2f3d0 Update expected centroid, interpolated angle and located point for reference curves
These values change because they are computed on the *linearization*
of those curves, and refactoring linearization codes results in
slighly different values.

NOTE: adding or not adding the control point would also affect these
results
2017-08-25 23:06:52 +02:00
Sandro Santilli
cf5a439feb Update expected results now that we're forcing control point in output 2017-08-25 23:06:52 +02:00
Sandro Santilli
d3558a19aa Remove test off-variable 2017-08-25 23:06:52 +02:00
Sandro Santilli
320c305d92 Fix build and multi-arc duplicated points 2017-08-25 23:06:52 +02:00
Sandro Santilli
48c953991e Refactor curveToLine to emit equidistant segments and fix some issues
Fixes #16717
Fixes #16722

Include tests
2017-08-25 23:06:52 +02:00
Nyall Dawson
43200ea8e9 Remove some redundant and unused MathUtils methods 2017-08-26 04:19:26 +10:00
Nyall Dawson
725301ad58 Make more use of math constants 2017-08-26 04:17:44 +10:00