1515 Commits

Author SHA1 Message Date
Juergen E. Fischer
98c601d1ba fix typos 2015-05-25 20:12:02 +02:00
Juergen E. Fischer
8050697335 make postgres provider tests optional 2015-05-25 12:55:37 +02:00
Marco Hugentobler
68fe5f5791 [FEATURE:] New geometry classes 2015-05-25 08:53:49 +02:00
Juergen E. Fischer
cec5bdeb0d fix some warnings 2015-05-24 18:48:22 +02:00
Matthias Kuhn
32463d0c15 Postgres provider: test default values are correctly returned 2015-05-23 18:28:30 +02:00
Matthias Kuhn
40e2845d49 Add some comments to provider test suite 2015-05-23 16:53:12 +02:00
Matthias Kuhn
c1b520fbd8 Hide shared library symbols by default on GCC and Clang
* Decreases lib size, loading time and compile time
 * Forces people on linux to use the {LIB}_EXPORT defines and therefore will
   make Windows nightlies more reliable
2015-05-23 16:53:12 +02:00
Alexander Bruy
803a0b9375 show correct coordinates in status bar when projected CRS used and
canvas units set to degrees (fix #12395)

Tests for latitude wrapping included
2015-05-23 05:07:51 +10:00
Matthias Kuhn
afc3996f6c Add shapefile provider tests
+ Fix OGR provider so it does not return features without geometry when
filtering with a FilterRect
2015-05-22 21:03:47 +02:00
Nyall Dawson
1078daf712 Add option to get null count from QgsVectorLayer::getDoubleValues 2015-05-23 04:35:11 +10:00
Matthias Kuhn
e2ff8edc79 Make python NULL hashable 2015-05-22 19:53:03 +02:00
Matthias Kuhn
2fe3f55775 Provider testing
* Test more operations
 * Include spatialite tests
2015-05-22 19:39:24 +02:00
Matthias Kuhn
97de55d117 Add new postgres provider test 2015-05-22 11:57:16 +02:00
Matthias Kuhn
8571ae7eab Convert tests/README to markdown and add more information 2015-05-22 11:57:16 +02:00
Matthias Kuhn
ec9e1464c1 Provider test 2015-05-22 11:57:16 +02:00
Matthias Kuhn
a2ae8b4e38 Add unit tests for postgres provider
basically to get a framework to test the expression compiler
2015-05-22 11:57:16 +02:00
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