6095 Commits

Author SHA1 Message Date
Juergen E. Fischer
09f6b918a5 * fix pyuic wrapper on windows
* fix PyQt wrapper installation on precise
2016-03-17 02:23:16 +01:00
Matthias Kuhn
f8175d33ef [processing] Move custom source data to separate folder 2016-03-16 08:56:27 +01:00
Bernhard Ströbl
b432bde1bf [processing] remove double quotes in test.yaml 2016-03-16 08:51:39 +01:00
Bernhard Ströbl
d7562eef95 [processing] add test for eliminate algorithm 2016-03-16 08:36:02 +01:00
Bernhard Ströbl
1dd7da4b3a [processing] eliminate: prepare input layer for test 2016-03-16 08:35:33 +01:00
Bernhard Ströbl
8a84152427 [processing] use proper way to access geometry 2016-03-16 08:35:33 +01:00
Nyall Dawson
5e08626051 Add QgsMapLayer::isSpatial() method
The current approach of testing !vl || vl->geometryType() != NoGeometry
is not intuitive and has been the source of 2 recent bugs.

Replacing these tests with the new isSpatial() function makes it
immediately obvious what is being tested. It also allows for
non-spatial plugin layers to be correctly handled by overriding
this method.
2016-03-16 12:38:16 +11:00
Juergen E. Fischer
4089ed8f01 fix pyuic wrapper 2016-03-16 00:34:24 +01:00
Nyall Dawson
96c60fdaec Workaround failing color ramp test on OSX, add some docs
Failure is odd.
c = r.stops()[0].color
self.assertEqual(c, QColor(100, 100, 40))

fails, but

s = r.stops()
self.assertEqual(s[0].color, QColor(100, 100, 40))

passes!
2016-03-16 10:10:07 +11:00
Juergen E. Fischer
8bda5c00a5 db_manager: migrate to new style signals 2016-03-15 23:46:54 +01:00
Juergen E. Fischer
7694b9a1e5 fix shadowed color ramp test 2016-03-15 20:09:38 +01:00
Juergen E. Fischer
c6d921729e python fixes:
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
  python/console/console_sci.py:547 QsciScintillaCompat?
  python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
Matthias Kuhn
cc5219b814 Merge pull request #2916 from mach0/p3_clean
improve import handling
2016-03-15 16:27:27 +01:00
Matthias Kuhn
74b5e12e37 [processing] Remove non-functional test code 2016-03-15 12:00:29 +01:00
Matthias Kuhn
c3e49d6a9e [processing] Don't use undefined tr function 2016-03-15 11:58:20 +01:00
Matthias Kuhn
99e21a7e5b [processing] Silence warning 2016-03-15 11:55:16 +01:00
Matthias Kuhn
eb8167d920 [processing] Remove various unused imports and variables 2016-03-15 11:55:05 +01:00
Matthias Kuhn
e9b30a0a36 [processing] Fix dissolve 2016-03-15 11:46:05 +01:00
Matthias Kuhn
e888d6d684 [processing] Add autoincremental field test 2016-03-15 11:45:34 +01:00
Matthias Kuhn
5607ae3f78 [processing] Fix autoincremental field 2016-03-15 11:37:51 +01:00
Werner Macho
6acdfc6e84 improve import handling 2016-03-15 11:14:16 +01:00
Matthias Kuhn
01cc455d2d [processing tests] Improve test debug messages 2016-03-15 11:08:46 +01:00
Matthias Kuhn
0e690fc701 [processing tests] Fix test generation parameter types 2016-03-15 11:08:46 +01:00
Juergen E. Fischer
01c2cfbe87 pyqtwrapper: set sip api to 2 for PyQt.QtCore for Qt4
(followup fb3fcfa3)
2016-03-15 10:31:04 +01:00
Matthias Kuhn
5789dd8e99 python3 compatibility fix 2016-03-15 08:18:39 +01:00
Matthias Kuhn
9852d6d74f Improve debug output of processing tests 2016-03-14 22:01:51 +01:00
Juergen E. Fischer
fb3fcfa3a0 Python3/Qt5/2to3 updates:
* pyqtwrappers update (add QtNetwork, QtXml, QtSql, QtTest, uic)
* 2to3 updates
* move QPyNullVariant/NULL to PyQt.QtCore
* add global unicode/basestring/long for Python3
* expand QtGui, QtCore module and star exports
* Qscintilla2
* replace Set import with set builtin
2016-03-14 20:38:20 +01:00
Nyall Dawson
e72a82e04f Minor refactor of QgsDiagramLayerSettings
- add public getters and setters for variables, will make variables
private in QGIS 3.0
- avoid some memory leaks and potential crashes
- move calculation of referenced fields to diagram classes, out
of QgsVectorLayerDiagramProvider
2016-03-15 06:24:38 +11:00
Matthias Kuhn
d6fca7e2e3 Indentation update 2016-03-14 10:56:24 +01:00
Matthias Kuhn
9ca09abb02 Fix expected dataset for splitlineswithlines test 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
e02d36f830 [BUG] make sure that result line consists of two nodes 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
97b0375804 [processing] test: limit coordinate comparison precision 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
648e6ac692 [processing] test: remove gfs output files 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
cfc0eb680e Try to fix indentation error 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
9124586bbf [processing] update test output files 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
bf54b9529a [processing] test cases for splitlineswithlines 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
0c719d6c0e [BUG] Do not output lines with two identical points 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
e3a2a1e5db [BUG] access geometry the right way 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
ffae112ece [BUG] Do not output lines shorter than 0.00001 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
bbcacfbfbd [BUG] Avoid trying to split a line with itself 2016-03-14 09:57:03 +01:00
Alexander Bruy
6610c6e25d [processing] don't throw error when new provider added and settings is not updated yet 2016-03-13 13:22:19 +02:00
Matthias Kuhn
e6785ba513 Be more verbose on exceptions in geoalgorithms 2016-03-10 12:14:29 +01:00
Matthias Kuhn
61366583b1 [processing] Fix default argument is SilentProgress for GeoAlgorithm.execute() 2016-03-10 12:14:28 +01:00
Alexander Bruy
9b35a9885a Merge pull request #2890 from NaturalGIS/processing_better_grass7_r_cost
[processing] better GRASS 7 r.cost algorithms
2016-03-10 08:05:29 +02:00
Nyall Dawson
8b34437192 Partially revert 3ec161 2016-03-10 12:59:58 +11:00
Nyall Dawson
3ec16131bc Indentation 2016-03-10 10:45:19 +11:00
Nyall Dawson
80afbeda93 Use doubles instead of float for min/max layer scales 2016-03-10 10:45:19 +11:00
Nyall Dawson
3b4638ab83 Followup 01f615d 2016-03-10 07:43:25 +11:00
Nyall Dawson
01f615d0d0 Merge pull request #2888 from pvalsecc/scaleDenom
Scale based layer visibility cosmetics
2016-03-10 07:42:25 +11:00
Alexander Bruy
605e0c43fe [processing] don't show tip when user uses search and tip was disabled (fix #14379) 2016-03-09 14:21:54 +02:00