42556 Commits

Author SHA1 Message Date
Matthias Kuhn
ba9e0437cc Merge pull request #5386 from m-kuhn/pylintFixes
Pylint fixes
2017-10-17 08:31:48 +02:00
Nyall Dawson
7fbecd365b Lighter borders for projection selector map 2017-10-17 09:31:24 +10:00
Nyall Dawson
92c97df55e Sync canvas extent rect color and center marker color 2017-10-17 09:28:13 +10:00
Nyall Dawson
5b1afd86bc "Loosen" up acceptable parameter for model child inputs
Previously we took a harsher approach to filtering which inputs
were acceptable for child algorithm parameters. E.g. a child algorithm
with a vector layer input would only show outputs from other algorithms
which generated a vector layer output.

But this can needlessly restrict what's possible in models. E.g.
an algorithm which outputs a QgsProcessingOutputFile or
QgsProcessingOutputString could potentially be a valid source
to a vector layer. So we should allow these as possible
inputs for vector layer parameters too.

This commit adds many extra acceptable input types for
child parameters. It will probably expose "corner cases" where
algorithms may get unexpected input types, but these will
not affect existing model stability and can be fixed when
identified.

The payoff is a much more flexible modeler.
2017-10-17 08:55:27 +10:00
Matthias Kuhn
9ff66936cd Add debug output to spatialite test 2017-10-17 00:46:36 +02:00
Matthias Kuhn
262836d5fd Fix too-many-format-args 2017-10-17 00:32:35 +02:00
Matthias Kuhn
f1eba211f6 Fix call to non-existent method 2017-10-17 00:29:23 +02:00
Matthias Kuhn
7aae9454ec Add abstract base method 2017-10-17 00:28:58 +02:00
Matthias Kuhn
b0855e2c41 Fix super call 2017-10-17 00:28:33 +02:00
Matthias Kuhn
506a831565 Fix typo in method name 2017-10-17 00:03:31 +02:00
Matthias Kuhn
b94612dffa Properly raise NotImplementedError 2017-10-17 00:01:48 +02:00
Matthias Kuhn
740f58b1db Remove broken and unused code 2017-10-16 23:55:25 +02:00
Matthias Kuhn
5bf300d79f Fix access to member variable in classmethod 2017-10-16 23:45:55 +02:00
Matthias Kuhn
118e303a8d Fix typo in method call 2017-10-16 23:36:38 +02:00
Matthias Kuhn
23c7517dc9 Migrate processing help to new processing registry 2017-10-16 23:34:34 +02:00
Matthias Kuhn
60db6b0665 Fix member access in postgis.py 2017-10-16 23:34:19 +02:00
Matthias Kuhn
6538ba0bf2 Fix too-many-format-args 2017-10-16 23:25:13 +02:00
Matthias Kuhn
d793f6c5ab Fix typo in method name 2017-10-16 23:22:09 +02:00
Matthias Kuhn
7c8cdff216 Fix used-before-assignment 2017-10-16 23:21:51 +02:00
Matthias Kuhn
34a9d91488 Fix broken error handling 2017-10-16 23:16:30 +02:00
Matthias Kuhn
28c67e1c01 Remove double-defined __init__ function 2017-10-16 23:05:14 +02:00
Matthias Kuhn
8b3a348b6d Fix file modes 2017-10-16 23:00:53 +02:00
Matthias Kuhn
b010b2a7a9 Remove PyQt4 compatibility layer 2017-10-16 22:34:37 +02:00
Daniele Viganò
a3f7655030 Fix a syntax error in dlg_sql_layer_window.py 2017-10-16 21:46:45 +02:00
Matthias Kuhn
83212e760a [travis] Stabilize spatialite tests 2017-10-16 16:25:35 +02:00
Martin Dobias
c176a8bfb0 Spin box: fix input of double values in locales with non-point decimal separator 2017-10-16 13:13:39 +02:00
Nyall Dawson
54f8825350 Fix processing tests 2017-10-16 20:10:37 +11:00
Nyall Dawson
cc5f7b1dfb Fix doxygen warning 2017-10-16 20:10:37 +11:00
Nyall Dawson
e92e20e613 Move native c++ processing algorithms from core library to analysis
And split into separate files for each algorithm
2017-10-16 20:10:37 +11:00
Matthias Kuhn
8dd8a9be8f Merge pull request #5324 from DelazJ/locale
Remove Locale tab from Options dialog
2017-10-16 10:27:44 +02:00
Matthias Kuhn
d4635d042d Merge pull request #5317 from pblottiere/bugfix_style
[bugfix] Fixes #17234 save/load styles from Postgres when a service file is used
2017-10-16 10:27:10 +02:00
Matthias Kuhn
afb2a6a098 Merge pull request #5333 from daniviga/better-rpm
Improve buildrpms.sh for nightly builds
2017-10-16 10:13:06 +02:00
Nyall Dawson
f579f1a449 Move bounds retrieval to QgsCoordinateReferenceSystem
Allows reuse in scripts/plugins/etc
2017-10-16 14:14:22 +11:00
Nyall Dawson
0002168c0d Fix wheel events in map canvas are not accepted even after
a zoom actually occurs, causing the event to pass on to underlying
widgets (e.g scroll areas)
2017-10-16 11:48:39 +10:00
Nyall Dawson
6e40b88fd7 Fix warnings 2017-10-16 10:59:14 +10:00
Nathan Woodrow
eac1096078 Fix build
Something something Monday something... :)
2017-10-16 10:56:16 +10:00
Nathan Woodrow
cf241f51ae [FEATURE][needs-docs] Show projection bounds in projection widget (#5356)
- Script to pull bounds from EPSG.org Postgres dump
- Add resources/data/world_map.shp for reference
- Show canvas bounds for reference
2017-10-16 10:40:05 +10:00
James Shaeffer
ea95b38509 Added new contributor (#5363) 2017-10-16 09:27:47 +10:00
Juergen E. Fischer
32131527bc query version from version.qgis.org instead of ubuntu.qgis.org 2017-10-15 23:10:40 +02:00
Martin Dobias
ae4d26a675 Merge pull request #5367 from wonder-sk/vertex-iterator-2
API for traversal of geometry's vertices using iterator pattern
2017-10-15 10:48:25 +02:00
Juergen E. Fischer
d6a12e0ba0 Fix 3D build on windows 2017-10-14 23:41:23 +02:00
Martin Dobias
277b508637 Fix test 2017-10-14 17:27:16 +02:00
rldhont
949d216744 Merge pull request #5316 from rldhont/db_manager_update_dblayer
[FEATURE][needs-docs][DB Manager] Be able to update every Db layer from Postgres, Spatialite and Oracle
2017-10-14 15:58:11 +02:00
Martin Dobias
7e34beec8c New API for traversal of geometry's vertices using iterator pattern
Introducing:
1. STL-style iterator: QgsAbstractGeometry::vertex_iterator
2. Java-style iterator: QgsVertexIterator (built on top of STL-style)

The iterators are modeled after Qt's STL-style and Java-style iterators,
the idea is to replace nextVertex() method and later introduce iterators
for other bits (e.g. part_iterator, ring_iterator).
2017-10-14 13:23:14 +02:00
Nyall Dawson
b91b854a19 Merge pull request #5352 from nyalldawson/geom
Geometry cleanups and modernization
2017-10-13 21:36:46 +10:00
Nyall Dawson
947b0cc49e Safer memory management in geos
Also speed up avoid intersections by removing unnecessary geometry
cloning
2017-10-13 19:55:57 +10:00
Nyall Dawson
c3fdaa950d Some safer memory management for geos 2017-10-13 19:54:00 +10:00
Nyall Dawson
88e1360278 Rename detach methods in QgsGeometry for clarity
Now we have:

- detach (which clones the existing geometry)
and
- reset (which detaches without cloning and sets a new geometry)
2017-10-13 19:47:37 +10:00
Nyall Dawson
8284575176 Even more memory safety in geometry internals by using qgis::make_unique 2017-10-13 19:47:37 +10:00
Nyall Dawson
85321b462b 'Polyfill' std::make_unique to qgis::make_unique 2017-10-13 19:47:37 +10:00