245 Commits

Author SHA1 Message Date
Nyall Dawson
d32c41a60e [processing] Fixes for field calculator and field mapper
- respect project distance, area and ellipsoid settings
- ensure expression variables are correctly evaluated
2016-02-28 12:45:43 +11:00
Hugo Mercier
dccca45468 [processing] Fix crash in ExecuteSQL.py 2016-02-26 11:10:46 +01:00
Matthias Kuhn
3e5e108b1a [processing] Make basic statistics translatable 2016-02-26 08:58:30 +01:00
Hugo Mercier
b92cb81fe7 [processing] Change version test so that ExecuteSQL is testable during feature freeze 2016-02-22 15:09:15 +01:00
Alexander Bruy
d3852e481e [processing] fix handling of NULLs is Basic statistics for text fields 2016-02-22 13:35:13 +02:00
Matthias Kuhn
f6995646f2 [processing] Add some newlines to the output of basic stats 2016-02-21 13:15:09 +01:00
Alexander Bruy
d8a5e0fc45 [processing] correctly handle zero in Basic statistics alg (fix #14331) 2016-02-18 18:52:09 +02:00
Alexander Bruy
08577ac15d [processing] fixes for Create Grid algorithm (fix #14303) 2016-02-17 14:46:29 +02:00
Alexander Bruy
ead88a3ac2 [processing] correctly recognize grid type (fix #14302) 2016-02-17 14:46:29 +02:00
Alexander Bruy
e7fe61e6b9 [processing] load algorithms only when requred 3rd party modules are
available or compatible QGIS version is used

Some housekeeping in QGIS algorithms provider
2016-02-17 14:46:02 +02:00
Alexander Bruy
169d35f319 [processing] fix example script 2016-02-10 16:37:14 +02:00
Matthias Kuhn
a3d3ffdf02 [processing] Make polygons to lines NULL aware 2016-02-04 13:35:17 +01:00
Matthias Kuhn
1205082269 [Processing] Make DeleteHoles algorithm NULL geometry aware 2016-02-04 13:35:17 +01:00
Matthias Kuhn
cd10c6c88e [processing] Add NULL geometry support to centroid algorithm 2016-02-04 13:35:17 +01:00
Matthias Kuhn
ce0d6102c3 [processing] Make centroid algorithm null geometry safe 2016-02-04 13:35:17 +01:00
Matthias Kuhn
b956886e81 [processing] Initialize icons before first usage 2016-02-04 13:35:16 +01:00
Nyall Dawson
cbe8cb7282 Formatting update, using newer autopep8 version 2016-01-30 09:33:24 +11:00
Alexander Bruy
d4e400a425 [processing] fixes for vector geoprocessing algorithms 2016-01-29 16:33:21 +02:00
Juergen E. Fischer
ae52aabd70 more spelling fixes 2016-01-24 20:16:28 +01:00
Juergen E. Fischer
00633811c9 spelling fixes 2016-01-21 10:42:25 +01:00
Alexander Bruy
908a380241 [processing] fix deprecation warnings 2016-01-20 16:39:13 +02:00
Alexander Bruy
62a571d6dd [processing] skip invalid geometries when dissolving (fix #13752) 2016-01-18 17:01:35 +02:00
Alexander Bruy
4451f29846 [processing] add layer and field names to the statistics output (fix #10089) 2016-01-15 19:29:39 +02:00
Alexander Bruy
3bc3f52f0c [processing] skip invalid geometries when buffering (fix #13763) 2016-01-15 14:34:03 +02:00
Nyall Dawson
c452c3d85f Fix some warnings and test failures on nightlies 2016-01-15 08:32:56 +11:00
Alexander Bruy
d12a0b4a25 [processing] fix Merge vector layers alg (fix #9978) 2016-01-14 17:07:08 +02:00
Nyall Dawson
184db1aa28 Indentation fix 2016-01-14 08:57:04 +11:00
Alexander Bruy
14c858a0b1 [processing] fix crash in ConcaveHull alg when using it from console (fix #12229) 2016-01-13 16:40:14 +02:00
volaya
7a879994d4 [processing] fixed frequency analysis algorithm
code provided by Joseph Liam

fixes #14090
2016-01-13 09:55:30 +01:00
Alexander Bruy
917ea5c0e3 [processing] add extension to the output vector VRT (fix #13872) 2016-01-12 20:24:55 +02:00
Hugo Mercier
9472c98686 [processing] add a new algorithm to execute SQL thanks to the virtual provider 2016-01-11 18:04:35 +01:00
Alexander Bruy
8d2f7bb2ee [processing] correctly write html output in utf-8 2016-01-08 16:50:07 +02:00
Alexander Bruy
4137437f2c PEP8 fixes 2016-01-08 10:32:43 +02:00
Salvatore Larosa
88a197b20f [processing] fix missing import for Union and Clip algs 2015-12-24 16:26:58 +01:00
Nyall Dawson
19ff7de06d Fix indentation 2015-12-15 11:22:39 +11:00
Juergen E. Fischer
02f8988837 indentation update 2015-12-02 18:36:59 +01:00
radosuav
34df72c75b [Processing] Use raster band scailing factor and offset in Zonal Statistics algorithm 2015-11-30 14:00:47 +01:00
Matthias Kuhn
afd436da9f Yet another fix to 594fafe 2015-11-24 16:57:43 +01:00
Matthias Kuhn
2e7c33281c Followup 594fafe73b8, Also fix processing 2015-11-24 16:29:35 +01:00
Nyall Dawson
d0625b8b35 [processing] Add algorithm for reversing line directions 2015-11-18 16:27:25 +11:00
Nyall Dawson
9009ef0b26 [processing] Add smooth algorithm
Allows for smoothing line or polygon layers
2015-11-18 16:27:14 +11:00
Nyall Dawson
48afc425dc [processing] Use faster expression request for ExtractByAttribute 2015-11-16 16:10:30 +11:00
Nyall Dawson
e15962eea9 [processing] Use QgsStatisticalSummary for statistic calculations
For BasicStatisticssNumbers and StatisticsByCategories algorithms.
Adds extra stats (minority, majority, 1st/3rd quartile and IQR) while
avoiding custom statistics calculation code.
2015-11-16 15:04:34 +11:00
volaya
54c4f750e6 [processing] fixed concave hull algorithm 2015-11-13 12:20:53 +01:00
volaya
cba585df2b [processing] correctly set geometry type of input in clip algorithm 2015-11-13 12:20:52 +01:00
Nyall Dawson
a10936f06a Use a set for classes in PointsInPolygonUnique (faster) 2015-11-13 13:24:08 +11:00
Nyall Dawson
596b56c441 Faster PointsInPolygon(+Unique/Weighted) algorithms
- Avoid use of seperate feature requests for every point
- Use GEOS prepared geometries when testing for point containment

Quick stats:

~1500 point layer

BEFORE: 17 seconds
AFTER: 3 seconds

~900k point layer

BEFORE: 30 mins = canceled at 20%
AFTER: 2.5 mins = 100% complete
2015-11-13 13:24:08 +11:00
Nyall Dawson
7c8177e01a Use expression filter request for SelectByAttribute
Makes SelectByAttribute orders of magnitude faster for providers which
support compiled expressions (eg Postgres), also allows algorithm
to take advantage of database indexes created on attribute.

For a 4 million point PostGIS layer (with an index on attribute)
BEFORE: cancelled after 20 mins
AFTER: ~2 seconds
2015-11-13 13:23:18 +11:00
Bernhard Ströbl
cfb932afa9 [PROCESSING] Speed up dissolve without changing parameters 2015-11-11 16:29:33 +01:00
Juergen E. Fischer
9a89408b72 indentation update 2015-11-10 20:21:10 +00:00