2001 Commits

Author SHA1 Message Date
Nyall Dawson
882f6f8c3c [symbology] Add some more dispersed marker symbols (half/quarter squares) 2016-04-05 09:28:55 +10:00
Mathieu Pellerin
2adfbb078a [symbology] add semicircle, third, quarter circles to simple markers 2016-04-04 20:09:02 +10:00
Mathieu Pellerin
541463718d [FEATURE] add outline join style to ellipse markers 2016-04-04 14:38:52 +10:00
Nyall Dawson
ae00eb965c [FEATURE] Allow expression functions to use named parameters
This commit sets the framework for allowing expression functions to
use named parameters. Ie, instead of:

clamp(1,2,3)

you can use:

clamp( min:=1, value:=2, max:=3)

This also allows arguments to be switched, eg:

clamp( value:=2, max:=3, min:=1)

Additionally, it allows for a more structured definition of function
parameters to handle optional arguments and default values for
parameters. These are currently being done using a hacky infinite
argument list.

I've utilised the postgres ':=' syntax for specifying named arguments
to avoid potential collisions which may arise with the equality test
if we re-used just the '=' operator alone.

Sponsored by North Road
2016-04-04 13:59:13 +10:00
David Adler
5fe19c5f15 merged DB2 updates
[FEATURE] New vector data provider for DB2 sources
2016-04-04 07:55:50 +10:00
nirvn
6ad3537403 [FEATURE] add outline join style settings to simple markers
(fixes #3797)
2016-04-03 09:57:11 +07:00
Juergen E. Fischer
99d5e42247 [FEATURE] vector file writer: allow selection of attributes to export 2016-04-03 01:56:21 +02:00
Matthias Kuhn
e3de0c119a Move drag and drop designer python API to QgsEdtiFormConfig 2016-04-01 13:35:33 +02:00
Nyall Dawson
38fa2980ad [composer] Fix polylines would be removed if they had < 3 points
when deleting nodes (2 node lines should be allowed)
2016-04-01 14:23:19 +11:00
Nyall Dawson
90b6f46bf1 Use Qt methods for translating node coords to scene coords 2016-04-01 14:23:12 +11:00
Blottiere Paul
7a8a5411e0 [FEATURE][composer] Add tools for drawing polygon and polylines 2016-04-01 11:05:03 +11:00
Nyall Dawson
6526cf5a86 New QgsFontUtils::asCSS method for converting a QFont to a CSS
string representation (as close as possible)
2016-03-30 19:35:34 +11:00
Matthias Kuhn
93e73ac66f Make readOnly mode of vector layers configurable 2016-03-29 08:27:53 +02:00
Matthias Kuhn
54219c571f Centralize handling of non-identifiable layers in QgsProject 2016-03-29 08:27:53 +02:00
Juergen E. Fischer
271750fd53 switch bindings to pyqt wrappers 2016-03-21 17:00:26 +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
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
Matthias Kuhn
5789dd8e99 python3 compatibility fix 2016-03-15 08:18:39 +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
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
Patrick Valsecchi
a112dfe63e Make out of range layers greyed out in the tree 2016-03-09 09:56:15 +01:00
Patrick Valsecchi
3efc73be61 Made layers/labels visibility more consistent
Some places forgot to make the max scale inclusive.
2016-03-09 09:56:06 +01:00
Nyall Dawson
6be8d06dc6 Fix searching for symbols by tag (fix #14445), add tests 2016-03-09 15:22:34 +11:00
Nyall Dawson
ed3cb12008 [FEATURE] Parameterized svg support for composer svg images
This makes it possible to change SVG fill/outline color and outline
width when using parameterised SVG files such as those included
with QGIS (fix #10542)
2016-03-08 08:15:04 +11:00
Juergen E. Fischer
2eb82430bb use individual network managers for threads (fixes #13721, fixes #14401, implements #14192) 2016-03-05 12:28:24 +01:00
Matthias Kuhn
23546775d2 Python binding fixes for 2.5D renderer 2016-03-03 20:40:24 +01:00
Nyall Dawson
13ac821249 Fix build 2016-03-01 15:46:37 +11:00
Nyall Dawson
5612936836 Fix setting symbol for single symbol renderer via legend dbl click
Eg if diagram legend is also shown for layer it's possible for the
single symbol renderer to show a legend item.
2016-03-01 15:30:23 +11:00
Martin Dobias
5090491998 Allow plugin layers to set their source 2016-02-29 20:39:29 +08:00
Nyall Dawson
b2235938e6 [FEATURE] Add km, yards and miles to distance unit options 2016-02-28 11:24:41 +11:00
Juergen E. Fischer
dec28b4109 add missed sslmode to sip binding (followup 31e43a9) 2016-02-26 20:40:57 +01:00
Juergen E. Fischer
31e43a9869 postgres provider: add support for verify-ca and verify-full ssl modes 2016-02-25 20:58:02 +01:00
Matthias Kuhn
50aa805832 Merge pull request #2778 from SebDieBln/FixOrphanedWidgetConfigs
[Bugfix] Avoid orphaned QgsEditorWidgetConfig (refs #14136)
2016-02-23 11:11:42 +01:00
Juergen E. Fischer
e503c705a1 change QgsAbstractGeometryV2::coordinateSequence() to return a
implicitly shared copy of an internal cache instead of recreating the
coordinate sequence again and again.

Improves performance of the nodetool on large features a lot (refs #13963)

Also introduce Qgs(Coordinate|Ring|Point)SequenceV2 typedefs.
2016-02-21 21:49:51 +01:00
Jürgen Fischer
4485d3abcf Merge pull request #2824 from nyalldawson/geombbox
Optimise storage/calculation of geometry bounding boxes
2016-02-21 19:01:52 +01:00
Nyall Dawson
6116fdcdb4 Add a bunch of missing geometry cache clears 2016-02-21 19:55:15 +11:00
Nyall Dawson
50f01a2ac8 Optimise storage/calculation of geometry bounding boxes
- removes storage of bounding box from QgsPointV2 (gives significant
decrease in size of object)
- more efficient calculation of bounding box for linestrings

Additionally, this commit moves the bounding box invalidation to a
virtual QgsAbstractGeometryV2::clearCache() method, so that other
non-bounding box caches can also be cleared when the geometry
is modified.
2016-02-21 16:26:45 +11:00
Matthias Kuhn
4c63c85cca Show provider errors more prominently 2016-02-20 17:21:57 +01:00
Juergen E. Fischer
5c4bf99ce2 debian packaging update: manually merge some changes from PR#2818 and
some spelling fixes.
2016-02-20 16:55:16 +01:00
Sebastian Dietrich
e99ccb7930 remove the accompanying QgsEditorWidgetConfig when removing a field
(refs #14136)
2016-02-20 15:39:47 +01:00
Alvaro Huarte
1a29030383 Remove duplicate methods of conversion
Remove duplicate methods of conversion of map coordinates to screen
coordinates
2016-02-19 09:43:01 +01:00
Nyall Dawson
4285d70b6c Fix "feature rendering order" checkbox is not honored (fix #14323) 2016-02-19 10:11:43 +11:00
Nyall Dawson
87661a03cd Move field icon calculation to QgsFields, show correct field type
icons in attribute table column filter menu (instead of new
attribute icon) and in field table in vector properties
2016-02-17 21:39:58 +11:00
Juergen E. Fischer
55727c3fcf add sip bindings to QgsCredentialsNone (followup 42bc9387) 2016-02-16 13:29:36 +01:00
Nyall Dawson
14f9a88811 Follow up c6c8277, fix bad behaviour of QgsBrowserModel introduced
by 44d9b35 (fix #14296)
2016-02-16 14:12:54 +11:00
Nyall Dawson
59b216be74 Add missing sip bindings 2016-02-15 19:02:34 +11:00
Nyall Dawson
6dc0b6910f Move handling of angular units to QgsUnitTypes, swap angle and distance
radio buttons to combo boxes in options dialog for consistency with
project properties
2016-02-15 15:22:30 +11:00