7397 Commits

Author SHA1 Message Date
Alexandre Neto
9f3ed88145 Makes GPKG prefered input format for OGR algs #Fixes 29097 2019-10-07 09:07:45 +10:00
Giovanni Manghi
cd71ea1f3c change confusing parameter name in DB Manager 2019-10-02 09:12:52 +01:00
Giovanni Manghi
c7e4130140 make the A_SRS parameter optional 2019-10-02 08:11:15 +10:00
Nyall Dawson
196e15a0ff [processing] Avoid confusing use of expression parameter type in
Random Points in Polygon algorithm

Instead, use a standard numeric parameter which accepts data-defined
expression values

Fixes #27640
2019-09-30 16:58:15 +10:00
Nyall Dawson
a49edf1f25 [processing] Make minimum distance between points in "Random Points in polygon"
algorithm optional

And don't do any unnecessary index work when it's not set. Shaves roughly 1/3rd
off the time of algorithm execution.
2019-09-30 16:58:15 +10:00
Andrea Giudiceandrea
7903889f54 Modeler: Set default action to Export as Script Algorithm
otherwise the button tooltip is not shown
2019-09-30 09:48:30 +10:00
Nyall Dawson
f32d6fdcf2 [processing] Highlight row_number variable in batch expression editor 2019-09-26 20:46:38 +10:00
Alexander Bruy
4df50691bc
Merge pull request #31901 from alexbruy/fix-29336
[processing] correctly handle case when layer source is not a plain path (fix #29336)
2019-09-24 15:03:43 +03:00
Nyall Dawson
90bac82f12 [needs-docs][processing] Respect user set default vector output format
in vector split algorithm

The created outputs will now be created using the format specified from
the Processing setting default vector format setting.
2019-09-24 16:50:22 +10:00
Nyall Dawson
cfcf580b61 [processing][needs-docs] Resurrect setting for default raster/vector
output format

This setting is still used and required in some circumstances, e.g.
it is used as the default selection in outputs file pickers when
the previously used format is not valid.
2019-09-24 16:50:22 +10:00
Nyall Dawson
08c55780b3 Followup cbc86ffc1ac
Fix exceptions, breakage of raster output format handling
2019-09-24 16:49:57 +10:00
Alexander Bruy
78a289348a use html.escape to escape strings 2019-09-24 09:27:29 +03:00
Alexander Bruy
20583a8004 use GDAL connection string to support not only file-based layer but also
database and WFS
2019-09-23 11:53:19 +03:00
Alexander Bruy
dceabb0e29 use another approach for test 2019-09-23 11:53:19 +03:00
Alexander Bruy
3c13fbfeb5 [processing] correctly handle case when layer source is not a plain path
in the virtual vector algorithm (fix #29336)
2019-09-23 11:53:19 +03:00
Alexander Bruy
cebdc8dded [dbmanager] don't ignore field modifiers (e.g. length or geometry
definition) when updating it (fix #27613)
2019-09-23 06:01:56 +10:00
Alexander Bruy
54c23d137f [dbmanager] handle attempts to edit raster tables (fix #30214) 2019-09-21 06:05:42 +10:00
Matthias Kuhn
54dda46e85
Merge pull request #31899 from paulwittle/master
Update general.py
2019-09-20 18:48:10 +02:00
Alexander Bruy
0c4f826039 [processing] add missed import 2019-09-20 12:59:33 +03:00
Paul Wittle
be25b2e392 Update general.py
Correction of error return type from bool to None (as per comments). This is to resolve unexpected exception messages when algorithm is not found.
2019-09-20 09:27:30 +01:00
Alexander Bruy
27b576c794
Merge pull request #31735 from alexbruy/fix-29663
[processing] add support for WFS as input (fix #29663)
2019-09-17 15:54:48 +03:00
Alexander Bruy
c7c91de52e fix tests 2019-09-17 08:32:01 +03:00
Even Rouault
cbc86ffc1a
Processing: disable 'open output layer' for write-only formats such as PGDUMP (relates to #31421) 2019-09-16 18:25:16 +02:00
Alessandro Pasotti
04f0879ed5 Processing editing in place: handle constraints
Fixes #31634
2019-09-16 10:41:58 +10:00
Etienne Trimaille
37803810eb
fix combobox ID not having correct checked state when we update a SQL layer 2019-09-13 17:46:38 +02:00
Alexander Bruy
af77d68716 return only base URL as connection string
adopt ogrinfo and ogrtabletopostgis algorithms so they can work with WFS
2019-09-13 11:11:53 +03:00
Alexander Bruy
4b7eaa4b9c [processing] support for WFS layers in GDAL algorithms (fix #29663) 2019-09-13 09:14:04 +03:00
Alexander Bruy
3f54e1db9a use doublequotes for indentifiers as required by GDAL's RFC52 2019-09-12 12:09:29 +03:00
Alexander Bruy
e1c97dc5ba [processing] quote field names in GDAL commands (fix #30878) 2019-09-12 10:52:31 +03:00
Geoff Kimbell
283c8b813a [processing] fix gdalwarp handling of custom projection for target extent
Fixes #31276
2019-09-07 08:24:14 +10:00
Juergen E. Fischer
c5fbddc827 typo fix
[ci skip]
2019-09-06 15:44:24 +02:00
Sandro Santilli
a01db6409c Have TopoViewer use custom layer ordering
This is used to make sure edges are rendered above faces and nodes
above edges, despite legend order.
2019-09-06 08:46:53 +02:00
Nyall Dawson
c409025409 [FEATURE][processing] New algorithm "Split features by character"
This algorithm splits features into multiple output features by
splitting a field's value with a specified character.

For instance, if a layer contains features with multiple comma
separated values contained in a single field, this algorithm can
be used to split these values up across multiple output features.

Geometries and other attributes remain unchanged in the output.

Optionally, the separator string can be a regular expression for
added flexibility.

Designed for use in models which need to process input files
with multiple concatenated values in a single attribute, e.g.
geocoding a table with "address1,address2,address3" format strings
2019-09-06 11:09:37 +10:00
Stephen Knox
a39a413b92 Fixing db_manager so that it can run sql with inline comments
Fixes #29089
2019-09-06 10:26:34 +10:00
Harrissou Sant-anna
2f95dd7701 Remove duplicate 'Ctrl+Shift+M' shortcuts 2019-09-06 07:38:33 +10:00
Giovanni Manghi
7b680f80d6 fix SAGA seeds generation tool 2019-09-06 05:29:50 +10:00
Nyall Dawson
1537f83614 Fix some algorithms fail to execute correctly in in-place mode 2019-09-06 05:29:08 +10:00
Alexandre Neto
fbb9fdd680 Fix Saga Raster Skeletonization algorithm
The saga tool expects integers only for the convergence parameter.
2019-09-05 11:49:36 +10:00
Luigi Pirelli
25ffc9f1c7 Hey! the var is dynamic! 2019-09-04 01:51:53 +10:00
Luigi Pirelli
7eaccc9049 changed to row_number to be consistent with other expression variables 2019-09-04 01:51:53 +10:00
Luigi Pirelli
a4b9ef73fd Added batch_number variable in algorithm scope to allow use it in the expression editor in Processing batch context 2019-09-04 01:51:53 +10:00
Sandro Santilli
d921c20f58 Add support for "bbox" URI parameter in PostgreSQL provider
.. and use it from TopoViewer DBManager plugin

Closes #18107
2019-08-29 17:47:25 +02:00
Sandro Santilli
8cc683061c Update TopoViewer layer style templates
From 1.9 version to 2.18 version

Closes #31471
2019-08-29 16:36:55 +02:00
Harrissou Sant-anna
58cc42a747 [needs-docs]Set the service area algorithms speed to 50km/h
using the same value as the "Shortest Path" algorithms
2019-08-28 03:53:54 +10:00
Nyall Dawson
538946ad08 Avoid deprecation warning from third party module
Fixes #31391
2019-08-26 06:25:46 +10:00
Matthias Kuhn
2e5e009445
Merge pull request #31280 from DelazJ/addtoolbarsWidgets
Allow more actions from toolbar to be listed/managed in the customization dialog
2019-08-22 10:48:46 +02:00
Alessandro Pasotti
fad258e37a
Merge pull request #31319 from elpaso/db_interface_new_constructors
New ctors for connections interface
2019-08-22 09:03:17 +02:00
Sandro Santilli
ae0721891b Restore TopoViewer functionality
This was broken in commit d7166404030292b9536e649795e9efec49225dfd
2019-08-21 17:27:48 +02:00
Alessandro Pasotti
a092a82b52 New ctors for connections interface
Tries to make it clearer what are the use cases for the two
constructors (name and uri).
2019-08-21 15:45:21 +02:00
Harrissou Sant-anna
2f5d544e3e Set objectName of items to allow their children status restoring 2019-08-17 10:12:26 +02:00