7613 Commits

Author SHA1 Message Date
Alessandro Pasotti
949efbd84e DB Manager: fix tests and minor cleanup 2020-01-31 13:35:29 +01:00
Alessandro Pasotti
a6e9050453 DB manager PG connection proper API usage
Fixes #34132
2020-01-31 10:47:28 +01:00
Nyall Dawson
3fb18a2260 [processing] Fix Points Along Geometry handling of multipart geometries
Fixes #34022
2020-01-31 14:46:33 +10:00
Nyall Dawson
d1d7dfe497 [processing] When listing available layer sources for an input in the
model designer, prefer to show the user's defined name for that output
instead of the generic one

Makes it easier to associate inputs with the correct outputs when
creating models
2020-01-31 07:33:44 +10:00
Radoslaw Guzinski
7771c6cea9 [processing] Looks for script algorithm files also in subfolders. 2020-01-30 08:48:54 +10:00
Radoslaw Guzinski
ea0a701d7a [processing] Catch AttributeError and TypeError when loading Processing script algorithms.
Otherwise an error in decorator of one script prevents all scripts from loading.
2020-01-30 08:48:54 +10:00
PedroVenancio
68cbc5b027 Add new -e -n flags
New features in GRASS 7.6: Add -n flag to create aspect as degrees clockwise from North (azimuth), with flat = -9999 (like gdaldem); new -e flag to compute values at edges (like gdaldem -compute_edges).
2020-01-30 08:47:45 +10:00
Harrissou Sant-anna
b0bffba9a1 Add short help to gdal's build virtual vector alg 2020-01-29 11:42:06 +10:00
Harrissou Sant-anna
adf63d6a90 Remove QGIS "build virtual vector" alg help 2020-01-29 11:42:06 +10:00
Nyall Dawson
d2dec2f823 Update test 2020-01-28 12:04:39 +10:00
Andrea Giudiceandrea
41c847136e Remove qgis:pointsalonglines python alg help
after "Points along geometry" algorithm port to C++ since 3.8 qgis\QGIS@f30fcca5ece7019d83d2b385f954a0335c84e7c6 qgis\QGIS#30175
2020-01-28 05:10:22 +10:00
Andrea Giudiceandrea
2c84b43c18 Remove qgis:creategrid python alg help
after "Create grid" algorithm port to C++ qgis/QGIS@9e9ade3903
2020-01-27 16:25:17 +10:00
Sandro Santilli
d39b6ac77d
Merge pull request #33225 from strk/dbmanager-reconnect-button
DBManager PostgreSQL backend using core APIs instead of psycopg2
2020-01-20 12:05:22 +01:00
Alessandro Pasotti
5af1306bf3
Merge pull request #33685 from elpaso/pgraster-pkeys
Native PostGIS raster data provider
2020-01-17 11:31:28 +01:00
Alexander Bruy
57e211dc4e update tests 2020-01-15 15:17:39 +02:00
Alexander Bruy
1fe16b712a use native algorithm instead of RectanglesOvalsDiamondFixed 2020-01-15 13:41:52 +02:00
Alexander Bruy
c752919dd0 [processing][needs-docs] port Rectangle,ovals,diamonds algorithm to C++
and make width, height and rotation parameters dynamic.

Old Python implementations marked as deprecated to maintain API
compatibility.
2020-01-15 13:41:52 +02:00
Nyall Dawson
a9ed83f1a6 [FEATURE][processing] New algorithm "Rename table field"
Takes an input layer, existing field and a new name for the field, and
outputs a new layer with the selected field renamed.

While this result could also be achieved with the Refactor Fields
algorithm, Refactor Fields isn't particularly model friendly. It
relies on a constant, fixed table structure, and can't adapt to
input tables with different field structures.

In constrast, this simple Rename Field algorithm adapts nicely for
model use, because it operates on a single field only and leaves
all the other fields untouched.
2020-01-15 21:56:10 +13:00
Sandro Santilli
5b4e581d03 Remove debugging 2020-01-14 10:42:56 +01:00
Sandro Santilli
6a20ed41a7 Extract field type from QgsField 2020-01-14 10:39:31 +01:00
Sandro Santilli
8ca08ec798 Set field precision and lengths from QgsField 2020-01-14 10:34:45 +01:00
Sandro Santilli
b4f4c331b7 Use lazy evaluation for query result descriptions 2020-01-14 10:31:11 +01:00
Nyall Dawson
771fc3ff60 [FEATURE][processing] Add new mode to "Join Attributes by Location" algorithm
to take attributes from matching feature with largest area of overlap only

This allows for easy polygon->polygon joins, where you expect there to be
only a single matching feature and don't want to include features which
are just touching or have just tiny sliver polygon overlaps.

Sponsored by SMEC/SJ
2020-01-14 21:28:30 +13:00
Etienne Trimaille
0a4f0e51a6 add field name when reporting an error in refactorfield algo 2020-01-14 11:32:48 +13:00
Alessandro Pasotti
0c2c133d83 DB manager use postgresraster provider instead of GDAL 2020-01-13 14:02:19 +01:00
Andrea Giudiceandrea
0d4d8254c1 [SAGA] Fix saga_cmd command with multiple outputs
Fixes a regression bug accidentally introduced with 40134d6473fcdbd8b6f53c3ea3db01e2dd606419 (PR #8968) and backported with a887b7d34bfa44a8400bcaa986ede96e15a760c9 (PR #9231): when there are multiple output parameters processAlgorithm incorrectly generates multiple saga_cmd commands, instead of a single command containing the output parameters.

Fixes #33658
2020-01-13 13:19:33 +13:00
Sandro Santilli
1ee8034e5b Handle query error 2020-01-10 14:52:33 +01:00
Sandro Santilli
bf4ed9ad47 Use QgsVectorLayer to retrive field names from queries 2020-01-10 09:46:05 +01:00
root676
aa2b38f9ca remove hash based python test entry 2020-01-10 13:32:42 +13:00
root676
4b8177fda9 add linedensity testdata 2020-01-10 13:32:42 +13:00
root676
ce342f7ac4 [feature][processing] Add Line denisty algorithm 2020-01-10 13:32:42 +13:00
Alexander Bruy
986930d28f [processing] use system temporary directory as default for Processing
temporary outputs (refs #33641)
2020-01-10 08:05:12 +13:00
Sandro Santilli
8e5ff28077 Revert "Start reorganizing DB connection for SQL window dialog"
This reverts commit 0ad368a9d28128a4f80896cc6f9989f12b758840.
2020-01-09 10:08:03 +01:00
Sandro Santilli
ae8f35926f Make CursorAdapter more generic (directly use AbstractConnection) 2020-01-09 10:08:03 +01:00
Sandro Santilli
95cb05e12e Fix disabling of debug 2020-01-09 10:08:03 +01:00
Sandro Santilli
5109e17019 Drop debug calls, and unused import 2020-01-09 10:08:03 +01:00
Sandro Santilli
d2d723b91b Do not get db and user names from the env if service is used 2020-01-09 10:08:03 +01:00
Sandro Santilli
07d88b1aaf Set dbname from environment, if not set already 2020-01-09 10:08:03 +01:00
Sandro Santilli
67ce48f698 Hard-code provider name in connector, so existing test is fixed 2020-01-09 10:08:03 +01:00
Sandro Santilli
6aa87fa67b Rename CursorProxy to CursorAdapter 2020-01-09 10:08:03 +01:00
Sandro Santilli
e0ec0e0b3b Make CursorProxy scrollable, tweak more of the adapter 2020-01-09 10:08:03 +01:00
Sandro Santilli
285a98431f Remove debugging line 2020-01-09 10:08:03 +01:00
Sandro Santilli
bb12bf2cca Add special code to ensure a NULL value gets converted to None
NOTE: this should really be done in lower levels
2020-01-09 10:08:03 +01:00
Sandro Santilli
7acbc362c0 Fix more Cursor execution functions (rename table) 2020-01-09 10:08:03 +01:00
Sandro Santilli
18c51c485c Fix TopoViewer plugin 2020-01-09 10:08:03 +01:00
Sandro Santilli
f034317665 Use the new QgsAbstractDatabaseProviderConnection interface 2020-01-09 10:08:03 +01:00
Sandro Santilli
3892faeb1c Start reorganizing DB connection for SQL window dialog
Working toward resolution of #31994 (allowing reconnect on
connection loss)

[skip ci]
2020-01-09 10:08:03 +01:00
Alexander Bruy
cf6cd48b38 fix typo 2020-01-06 11:19:55 +10:00
Alexander Bruy
5e62e60de9 [processing] add user-defined parameters to gdal_rasterize 2020-01-06 11:19:55 +10:00
Alexander Bruy
b511841775 [processing] fix v.net,centrality 2020-01-06 11:19:55 +10:00