6221 Commits

Author SHA1 Message Date
Bernhard Ströbl
bd64b4fd4c [processing] renew test results depending on polys.gml 2016-03-16 14:29:45 +01:00
Bernhard Ströbl
155e7128e0 [processing] change polygon test input 2016-03-16 14:17:08 +01:00
Bernhard Ströbl
02df48cf43 [processing] reflect changed test input in yaml file 2016-03-16 14:10:56 +01:00
Bernhard Ströbl
f73b572704 [processing] renew test output for eliminate 2016-03-16 14:07:12 +01:00
Bernhard Ströbl
51bf08c1d3 [processing] change test input to have adjacent polygons 2016-03-16 14:07:12 +01:00
Bernhard Ströbl
62a4db8c40 [BUG] run eliminate with non-editable input layer 2016-03-16 14:07:12 +01:00
Bernhard Ströbl
082b5757dc [processing] add test for eliminate algorithm 2016-03-16 14:05:39 +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
Médéric RIBREUX
d318981f3d Add v.in.lidar algorithm 2016-03-12 21:06:39 +01:00
Médéric RIBREUX
7f461f3f1a Add v.rectify algorithm 2016-03-12 18:08:09 +01:00
Médéric RIBREUX
538ad69768 Add v.edit algorithm 2016-03-12 17:49:26 +01:00