953 Commits

Author SHA1 Message Date
nyalldawson
a85b0bc79e Add regexp_substr function for returning matched part of string against regex 2013-05-13 08:14:37 +10:00
nyalldawson
167cc95e35 Add rand and randf functions for generating random numbers 2013-05-13 08:14:36 +10:00
Chris Crook
0d464b2e1b Delimited text provider indexing implemented.
Efficiency improvements.

Adds capabilities
   SelectAtId
   CreateSpatialIndex

This uses line number as an index.  Allows jumping to a line number
without interpreting all intermediate records, so much more efficient.
Also retains the current record in a buffer, so successive requests for
the same record do not require rereading the file.

With index available have also added indexing of subsets and optional
creation of spatial index.

Note: did try using QTextStream.pos to build a random access index -
this was incredibly slow.  Have found using line based index is
reasonably fast even on quite large (50+Mb) text files.
2013-05-10 13:45:48 +12:00
Juergen E. Fischer
ca43d8df2c resolve cyclic include masking QgsDiagramLayerSettings in 2479d8326 on windows 2013-05-06 16:53:45 +02:00
Juergen E. Fischer
e0907b0f0a more spelling fixes 2013-05-03 21:39:28 +02:00
Juergen E. Fischer
d4542feedf another indention update 2013-05-03 00:25:39 +02:00
Juergen E. Fischer
d0aa1e47e8 indentation update 2013-05-02 00:02:25 +02:00
nyalldawson
b5042df7ed Add tests for python bindings for layer blend modes 2013-05-02 07:40:01 +10:00
Chris Crook
2fb50ab518 Merge branch 'delimited_text_bug_fixes_2' into delimited_text_substring_capability 2013-05-02 07:33:59 +12:00
Chris Crook
78f511078b Merge branch 'master' into delimited_text_bug_fixes_2 2013-05-02 07:32:57 +12:00
nyalldawson
9e870c7893 Add tests for python bindings for composer item blending and transparency
Add python bindings for composer item background
2013-05-01 14:05:43 +10:00
nyalldawson
e11f4e87d4 Add tests for layer blending 2013-05-01 10:16:43 +10:00
Nyall Dawson
4c42cb1ea5 Merge pull request #567 from nyalldawson/overview
Add blending mode for overview frame, option to invert overview frame
2013-04-30 05:27:07 -07:00
nyalldawson
e19079d60a Add tests for composer item transparency and blending 2013-04-30 14:51:05 +10:00
Chris Crook
1fb60b4c9a Adding subset test and help information 2013-04-30 14:11:40 +12:00
Chris Crook
ea8617df25 Substring working - tests not in place yet 2013-04-30 13:47:57 +12:00
Chris Crook
2a23652812 Added check of dataSourceUri to tests 2013-04-30 13:31:31 +12:00
Radim Blazek
229419ee13 raster cleanup 2013-04-29 17:29:29 +02:00
nyalldawson
171973a54f Add blending mode for overview frame, option to invert overview frame 2013-04-29 21:48:49 +10:00
Radim Blazek
33d13ccca7 raster cleanup 2013-04-29 13:28:05 +02:00
Chris Crook
18786ad7d5 Merge branch 'master' into delimited_text_bug_fixes_2 2013-04-29 20:48:56 +12:00
nyalldawson
533030f80e Add regexp_match function, improve help for regexp_replace function 2013-04-29 09:10:57 +10:00
nyalldawson
6e5221cd6d Add color_cmyk and color_cmyka functions 2013-04-29 09:10:48 +10:00
nyalldawson
c038374e41 Add color_hsv and color_hsva functions 2013-04-29 09:10:39 +10:00
nyalldawson
d52e007de8 Add color_hsl and color_hsla functions 2013-04-29 09:10:33 +10:00
Matthias Kuhn
1a19947ea1 Merge pull request #564 from vinayan/fixRubberband
[Fix #7728] - QgsRubberband addGeometry does not add multipart geometries to existing points
2013-04-28 12:47:21 -07:00
Etienne Tourigny
ddbfb2e8ea restore zip raster layer style test - still needs a test for vector layers 2013-04-28 11:55:45 -03:00
Etienne Tourigny
785f614a4e remove invalid layers from zip test files 2013-04-28 11:19:14 -03:00
vinayan
9d935148e5 fix QgsRubberband.addGeometry when adding multipart geometries 2013-04-28 13:54:46 +05:30
Chris Crook
2232c3d9bc Merge branch 'master' into delimited_text_bug_fixes_2 2013-04-27 07:10:57 +12:00
Etienne Tourigny
02fa7292c6 add temporary output for zip test 2013-04-26 09:01:33 -03:00
Chris Crook
eb220fd210 Merge branch 'master' into delimited_text_bug_fixes_2 2013-04-26 12:13:13 +12:00
Chris Crook
fd57ffa571 Merge branch 'master' into colour_functions 2013-04-26 11:35:32 +12:00
Chris Crook
7603f3e17a Fixes bug #7688 2013-04-26 10:26:47 +12:00
Matthias Kuhn
9e57117e79 Enable pal label testing to qgis_bench 2013-04-25 10:22:14 +02:00
Radim Blazek
5533d571c8 common raster enums moved to raster namespace 2013-04-24 17:18:33 +02:00
Chris Crook
17dea1a2c6 Making test script a bit more robust 2013-04-24 19:23:54 +12:00
Chris Crook
d835194ab0 Merge with master 2013-04-24 07:23:09 +12:00
Radim Blazek
ea493273fc PyQgsDelimitedTextProvider fix for python 2.6 (dictionary comprehensions not supported) 2013-04-20 10:49:59 +02:00
Radim Blazek
47894ff733 raster cleanup 2013-04-20 10:39:39 +02:00
Radim Blazek
8b18577a67 raster cleanup 2013-04-19 21:10:38 +02:00
Matthias Kuhn
31cecdbc51 Fix attributetable and vectorlayercache
* In the attributetable there was a mess with references and pointers, originating from 66fadee8ef.
* QgsVectorLayerCache did sometimes cache features which did not contain all information which needs to be cached and therefore corrupting the cache and leading to incomplete cache hits.
* Add a unit test for the cache problem
* Fix QgsCacheIndexFeatureId
* QgsAbstractCacheIndex::getCacheIterator now produces a QgsFeatureIterator (instead of a list of Feature Ids). This allows to combine a mixed response, partly satisfied by the cache and partly by an additional query to the backend.
2013-04-19 10:59:11 +02:00
Chris Crook
b501c9a133 Error message fixes and more regexp testing 2013-04-18 19:59:34 +12:00
Chris Crook
5e4f4f73ba More testing and bug fixes
Regular expression delimiter:  fixed non-intuitive behaviour of not
including capture groups in the returned fields, and improved behaviour
for anchored regular expressions.  Added test cases for handling of
regular expressions.

File encoding: Selected file encoding was being ignored.  Fixed and
added test cases for file encoding.

Bad formatted quoting: Fixed handling of badly formatted quotes (eg
unclosed quotes).  Added test case.

Field names: Where a file had duplicate or blank field names it was
not possible to reliably set the names of X,Y,WKT fields.  Relocated
field name handling to simpler common code in QgsDelimitedTextFile, with
automatic renaming of fields with ambiguous or missing names.  Add test
case for field renaming

User interface fixes: Fixed tooltip and other messages throughout.
Changed encoding combo box to be alphabetically sorted. Fixed data
sample to be refreshed when encoding changed.
2013-04-18 14:49:58 +12:00
Chris Crook
e5bdac785d Adding testing feature id to test script 2013-04-18 06:41:20 +12:00
Chris Crook
d6a53e57e0 Missed committing files 2013-04-16 14:32:26 +12:00
Chris Crook
1e8304be77 Fix for handling of numeric columns with comma for decimal point (bug #6719) 2013-04-16 14:16:14 +12:00
Chris Crook
0372e4b61b Code name consistency fix and unit tests for functions 2013-04-16 08:55:59 +12:00
Matthias Kuhn
2ef7e49419 [Fix test] Set fixed offset angle for reproducable results 2013-04-15 15:15:49 +02:00
Matthias Kuhn
c0da20557a [Fix diagramtest] replace control image with properly rotated image 2013-04-15 15:11:49 +02:00