240 Commits

Author SHA1 Message Date
Martin Dobias
c8bb12f7bb Expressions - conditional expressions (CASE)
Right now only without "base" expression:
CASE WHEN cond1 THEN exp1 [WHEN cond2 THEN exp2]* [ELSE exp3] END
2012-01-07 01:20:03 +01:00
Tim Sutton
8ddf11998d Fix style classes which lost their attribute association for some reason 2011-12-29 11:19:42 +02:00
Tim Sutton
5193f60d2a Revert "Merge branch 'master' of github.com:qgis/Quantum-GIS into qgis-master"
This reverts commit 78ce3cdc84b79dbec5d227db9ee14af6edf9af66, reversing
changes made to 2414a3abbc97483a5355c262a96c4fc353566bcb.
2011-11-30 15:25:43 +02:00
Tim Sutton
301d20717d Merge branch 'master' of github.com:qgis/Quantum-GIS 2011-11-27 20:09:23 +02:00
Radim Blazek
dc56ea9b24 maxdev must also be inited 2011-11-27 14:43:31 +01:00
Radim Blazek
03f4ff79f9 array init fix 2011-11-27 12:45:18 +01:00
Tim Sutton
0116951cd7 Further updates to places provider registry called pluginPath to make it use providerPath now 2011-11-23 11:49:44 +02:00
Juergen E. Fischer
376adc4dab emulate getrusage(2) on windows (borought from PostgreSQL) 2011-11-22 16:02:57 +01:00
Radim Blazek
84964942c7 Dont use QgsApplication, --prefix, json fix 2011-11-21 20:36:27 +01:00
Radim Blazek
555e028e73 benchmark program 2011-11-20 13:43:21 +01:00
Tim Sutton
4906f7749e Fixes so qgspoint unit tests all pass 2011-11-16 23:35:51 +02:00
Juergen E. Fischer
295bf55a5b fix windows build and include tests runs in nightly build 2011-11-15 20:54:01 +01:00
Tim Sutton
9130bafe7c Partial fix to coordinate reference system unit tests 2011-11-14 16:25:21 +02:00
Tim Sutton
306d1a4db0 Make more tests work - only 4/16 fail now 2011-11-14 16:15:17 +02:00
Tim Sutton
8dc8222510 Updates for regression992 test - test should work but raster still introduces some difference which I am working to figure out why 2011-11-14 15:52:11 +02:00
Tim Sutton
d13fb2586b Fix problem with analyzer test 2011-11-14 15:36:55 +02:00
Tim Sutton
2b8487b942 Further updates to the unit tests - still not all passing yet 2011-11-14 14:52:59 +02:00
Tim Sutton
e54680dbdd Updates for unit tests so they actually run and fix application test 2011-11-14 13:14:25 +02:00
Martin Dobias
6996946a85 Fix #4441 2011-11-02 10:22:38 -03:00
Sandro Santilli
d7b106fed3 Only implement QVariant bug workaround when building against Qt < 4.7.1 [#4284] 2011-10-22 14:17:19 +02:00
Sandro Santilli
926b3888a1 Workaround for builds against Qt 4.6.2. Fixes bug #4284. 2011-10-22 14:05:35 +02:00
Martin Dobias
05912884f9 Expressions: add exp,ln,log10,log functions (#4365) 2011-10-11 19:46:44 -03:00
Juergen E. Fischer
743f207575 fix some warnings 2011-09-29 21:51:12 +00:00
Juergen E. Fischer
5e9d95b88a indentation update 2011-09-29 20:32:51 +00:00
Tim Sutton
28319682f3 Added unit test for GDAL_SKIP stuff 2011-09-13 11:39:16 +02:00
Martin Dobias
2154a813e2 Simplified three-value logic code 2011-08-11 20:09:16 +02:00
Martin Dobias
e4ae11fdbe Improved handling of types in expressions:
- implicit conversions to string / int / number / TVL
- error reporting on conversion errors
- automatic conversion to numeric values for arithmetic operators
- try to use numeric comparison by default, fallback to string comparison
- functions do not need to explicitly care about NULL passed as an argument
2011-08-10 00:47:40 +02:00
Martin Dobias
4d0e59c183 [FEATURE] new QgsExpression class that replaces QgsSearchString
The new class fixes various flaws in search strings:
- fixed and simplified grammar in parser
- simplified lexer
- only one evaluation routine (instead of separate getValue/checkAgainst)
- SQL compliant three-value logic (true, false, unknown)
- correct error handling
- easily extensible list of functions, saner evaluation of expressions
- tests included
2011-08-07 23:07:40 +02:00
Martin Dobias
0053426f97 Do not install tests, keep their default RPATH settings 2011-08-07 22:36:11 +02:00
Tim Sutton
1c946725c1 Regenerated docs post raster-stats merge 2011-08-04 10:45:08 +02:00
Juergen E. Fischer
b74a515e94 cmake: replace deprecated SUBDIRS with ADD_SUBDIRECTORY 2011-05-27 22:45:08 +02:00
Juergen E. Fischer
5a6d3cebcc remove svn Id tags 2011-05-26 23:05:55 +02:00
Juergen E. Fischer
0b2317e85a fix windows build by cleaning up (dynamic) linkage and some warnings 2011-05-24 11:39:55 +02:00
jef
3fd6119492 deprecated special handling of EPSG - just one authority
git-svn-id: http://svn.osgeo.org/qgis/trunk@15246 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-02-22 23:32:33 +00:00
jef
dc25d450e0 automatic indentation update (r14435-r15226)
git-svn-id: http://svn.osgeo.org/qgis/trunk@15227 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-02-20 22:35:13 +00:00
jef
1edaeca304 add QGISDEPRECATED macro and fix a bunch of warnings
git-svn-id: http://svn.osgeo.org/qgis/trunk@15197 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-02-18 15:05:35 +00:00
jef
b440e1ebe8 automatic indentation update (r14312-r14435)
git-svn-id: http://svn.osgeo.org/qgis/trunk@14436 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-10-26 09:09:51 +00:00
timlinux
b12fefe92d Make the unit test more explicitly test result size and use a proper attribute list
git-svn-id: http://svn.osgeo.org/qgis/trunk@14400 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-10-18 19:43:08 +00:00
timlinux
156fd1f5b6 Beginnings of unit test for vector layer
git-svn-id: http://svn.osgeo.org/qgis/trunk@14396 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-10-18 15:12:03 +00:00
jef
bab2eff382 [FEATURE] add search string support for feature ids ($id)
git-svn-id: http://svn.osgeo.org/qgis/trunk@14247 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-09-18 15:31:31 +00:00
jef
cf578ef78e remove .cvsignore files
git-svn-id: http://svn.osgeo.org/qgis/trunk@14165 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-08-28 22:35:41 +00:00
jef
8696c2fc51 automatic indentation update (r12600-r13658)
git-svn-id: http://svn.osgeo.org/qgis/trunk@13659 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-06-05 13:21:40 +00:00
wonder
a938db7936 Revert accidental commit
git-svn-id: http://svn.osgeo.org/qgis/trunk@13635 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-06-03 20:27:45 +00:00
wonder
29e146c3f3 Fixed #2744
git-svn-id: http://svn.osgeo.org/qgis/trunk@13631 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-06-03 10:49:26 +00:00
jef
1541ff5225 update permissions
git-svn-id: http://svn.osgeo.org/qgis/trunk@13463 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-05-10 18:52:30 +00:00
wonder
0ff7cc973a added some unit tests for search strings
git-svn-id: http://svn.osgeo.org/qgis/trunk@13196 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-03-29 17:33:20 +00:00
jef
b2c10ff111 automatic indentation update (r12177-r12600)
git-svn-id: http://svn.osgeo.org/qgis/trunk@12601 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-23 16:41:22 +00:00
jef
e5cf709dd3 another round of typo fixes (and use color instead of colour - like Qt; no string updates)
git-svn-id: http://svn.osgeo.org/qgis/trunk@12600 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-23 16:14:24 +00:00
jef
cbf1a50bd6 fix common typos
git-svn-id: http://svn.osgeo.org/qgis/trunk@12528 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-20 12:29:07 +00:00
timlinux
dd56fda552 Updated coding documentation to reflect Martins ADD_QGIS_TEST macro for unit testing
git-svn-id: http://svn.osgeo.org/qgis/trunk@12107 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-14 17:46:34 +00:00