1299 Commits

Author SHA1 Message Date
Hugo Mercier
d9f54c42fc Merge pull request #1970 from mhugo/fix_spatialite
[spatialite] Allows to use a query as a table without primary key. It will auto increments an internal counter as feature id in this case.
2015-05-21 15:19:10 +02:00
Tobias Reber
fca8c5e082 Hej fra Noedebo 2015-05-21 10:30:00 +02:00
Nyall Dawson
7f3180926d Followup c6f9b07, add unit test 2015-05-21 18:27:39 +10:00
Nyall Dawson
9076ff8d71 Fix some deprecated warnings 2015-05-21 00:56:03 +10:00
Nyall Dawson
d393d268e1 Fix up non-const getters for attributes and geometry in QgsFeature
(preparation for implicit sharing)
2015-05-20 21:46:15 +10:00
Matthias Kuhn
a58a2f28d7 Add unit test for edit widget "TextEdit"
QGIS Dev conference Denmark
2015-05-20 11:53:34 +02:00
Nyall Dawson
a495c8c2ab Test suite for QgsFeature (preparation for implicit sharing of
QgsFeature)
2015-05-20 16:59:55 +10:00
Nyall Dawson
4b4075b5b9 [labeling] Fix setting a wrap character conflicts with newlines
in label text (fix #12750)
2015-05-19 06:18:07 +10:00
Nyall Dawson
0b326069bd Bump acceptable doc coverage 2015-05-19 04:11:05 +10:00
Nyall Dawson
17962ef47b Add QgsHistogram class for calculating numeric histograms from a
list of values or a vector layer's attribute.
2015-05-19 02:21:15 +10:00
Radim Blazek
7091d3bef8 [GRASS][FEATURE] vector import via browser drag and drop 2015-05-18 16:53:11 +02:00
Nyall Dawson
02774210eb Add selected features only mode to QgsVectorLayer::getValues
and getDoubleValues
2015-05-17 23:28:59 +10:00
Juergen E. Fischer
173ee45405 fix windows build 2015-05-16 21:35:00 +02:00
Radim Blazek
06167d4f78 [GRASS][FEATURE] raster import via browser drag and drop 2015-05-16 13:48:43 +02:00
Nyall Dawson
5194ce5288 More QgsFields tests 2015-05-14 20:02:48 +10:00
Nyall Dawson
d955b03924 Boost test coverage of QgsField / QgsFields 2015-05-13 22:03:08 +10:00
Nyall Dawson
2863f20d67 Add a const geometry getter to QgsFeature 2015-05-11 19:46:32 +10:00
Nyall Dawson
e371219d87 Fix incorrect calculation of max in QgsStatisticalSummary 2015-05-10 18:26:59 +10:00
Nyall Dawson
14fd976f06 Implicit sharing for QgsDataDefined 2015-05-08 16:25:39 +10:00
Nyall Dawson
ad7fad513d Fix referenced columns from QgsDataDefined so that columns are
returned even if expression was not sucessfully parsed (column
names are still inferred during the expression preparation).
2015-05-06 18:35:59 +10:00
Nyall Dawson
6ad2f9f091 Some improvements to QgsDataDefined and QgsDataDefinedButton:
- enhanced methods for storing/retrieving QgsDataDefined in a
  string map
- add method to QgsDataDefinedButton to update parameters for a
  QgsDataDefined
- deprecate an unused method
- const correctness
2015-05-06 18:35:59 +10:00
Nyall Dawson
fba32f123d Allow storing QgsField and QgsFields in a QVariant 2015-05-06 07:03:39 +10:00
Radim Blazek
1100c9871d GRASS test fix 2015-05-04 12:36:55 +02:00
Hugo Mercier
fd6dc0d8eb Allow to open a spatialite table without primary key 2015-05-04 10:04:06 +02:00
Juergen E. Fischer
edeafa95ac indentation and minor sip updates 2015-05-03 17:10:32 +02:00
Nyall Dawson
96db1bdb7e Allow expression functions to include 0 length parameter lists
This change allows for some cleanups to the built in expression
functions, by making it possible to differentiate variables
(eg $feature) from functions which don't require parameters
(eg uuid(), now()... ). Also adds aliases for uuid(), now(), and
pi().
2015-05-03 20:57:37 +10:00
Nyall Dawson
bd9e02be95 Add alias support for expression functions
Standardise naming of all internal functions to lowercase with
underscore convention. Add aliases for old names to avoid
breakage.
2015-05-03 20:57:36 +10:00
Nyall Dawson
bb648306b6 Implicit sharing for QgsFields 2015-05-03 20:57:36 +10:00
Nyall Dawson
31e8611230 Add quartiles and IQR to QgsStatisticalSummary calculations 2015-05-03 20:48:22 +10:00
Nyall Dawson
154468bd84 Add QgsStatisticalSummary class for calculating stats from a list
of values.
2015-05-02 23:19:39 +10:00
Nyall Dawson
bb0e583f4b Move methods for returning lists of values from a vector layer field
or expression to QgsVectorLayer. Add unit tests.
2015-05-02 20:32:16 +10:00
Nyall Dawson
fadaf12490 Implement implicit sharing for QgsField 2015-05-02 19:12:44 +10:00
Nyall Dawson
ce18a60bc7 Bump acceptable doc coverage 2015-04-30 17:27:35 +10:00
Nyall Dawson
721d9f5908 Formatting and code cleanups for QgsScaleExpression 2015-04-30 06:28:05 +10:00
vmora
70b91b6302 Add QgsScaleExpression subclass for sized based expressions 2015-04-30 06:27:59 +10:00
Matthias Kuhn
06180fe34d Reimplement QgsNetworkContentFetcher test with a local server
Reduces false alarms in unit tests due to network problems
2015-04-29 09:50:59 +02:00
Matthias Kuhn
c2fb5e19e2 Revert "Streamline singleton behavior"
This reverts commit b4a85471978b59b129c0299dfd14c1af00fef743.

The template based approach was not cross-platform friendly. When
cross-compiling for Android it caused a new instance of every singleton per
shared library.

Mostly using the magic statics pattern instead now:
See http://stackoverflow.com/a/11711991/2319028

Important things to remember for crash on exit:

 * QgsNetworkAccessManager needs to die before QApplication
 * QgsMapLayerRegistry needs to be emptied before QgsProviderRegistry goes away

And finally:
DON'T USE SINGLETONS!
They are for "one and only one" and not for "happens to be only one" situations.
2015-04-28 17:41:39 +02:00
vmora
0c5063fee6 Add method to create a QgsDataDefined from a string.
Automatically analyses to determine whether the string refers to
a column or is an expression.
2015-04-27 18:22:36 +10:00
vmora
d4319621a5 Add an isField test for QgsExpression
Checks whether expression consists of solely a field reference
2015-04-27 18:22:18 +10:00
Radim Blazek
1ac4b25289 [GRASS] more tests 2015-04-23 19:04:42 +02:00
Nyall Dawson
774e5d3012 Fix crash on QgsDataDefined copy (fix #12027) 2015-04-22 06:00:59 +10:00
vmora
8cb875546e Add unit test for QgsDataDefined copy 2015-04-22 06:00:45 +10:00
Juergen E. Fischer
51a7317c72 osgeo4w: fix running of grass test 2015-04-17 17:55:47 +02:00
Juergen E. Fischer
d79268cbd7 indentation update 2015-04-17 09:51:24 +02:00
Nyall Dawson
2722426059 Bump acceptable documentation coverage 2015-04-14 09:15:25 +10:00
Juergen E. Fischer
ad23f28059 fix grass provider test (followup 7219336) 2015-04-12 01:41:11 +02:00
Nyall Dawson
28b5217bb8 Merge pull request #1974 from vmora/graduated_by_size
[feature] graduated with varying size
2015-04-11 11:15:50 +10:00
Juergen E. Fischer
721933628b GRASS 6/7 build fixes:
* fix build on windows
* fix grass build on precise (using cmake <2.8.8, ie. without INCLUDE_DIRECTORIES target property)
* support desktop & browser shortcut for GRASS 6/7 in OSGeo4W nightly build
2015-04-10 14:44:10 +02:00
vmora
84af60ad56 [feature] graduated with varying size
The graduated symbol renderer now allows to use varying size instead of
varying color.

The classification remains the same an tabbed size/color in the gui
allows the use to choose one type or the other.
2015-04-10 09:14:14 +02:00
Radim Blazek
7c419bf269 [GRASS] test case 2015-04-09 10:55:08 +02:00