528 Commits

Author SHA1 Message Date
Alexander Bruy
32f6034be7 [processing][needs-docs] force multipart output from GDAL-based dissolve
algorithm (fix #20025)
2019-01-25 09:57:31 +11:00
Alexander Bruy
133b4057a6 add note about format of the srcnodata parameter 2019-01-22 08:18:37 +02:00
Alexander Bruy
dc2b29ce6a [processing] add missed "srcnodata" parameter to the buildvrt algorithm
(fix #20586).

Without this parameter it is not possible to remove collars surrounding
input raster which may overlap with other input rasters. As this is very
frequent case algorithm is useless without such parameter. To keep API
compatibility new parameter is optional and not used by default.
2019-01-22 08:17:47 +02:00
Alexander Bruy
bb2c3663b0 [processing] add optional EXTRA parameter to gdalwarp algorithm (fix #20721)
This allows users to pass additional command-line arguments which are
not exposed in the algorithm definition. The most frequent use case is
enabling transparency and adding nodata values.
2019-01-22 09:39:57 +11:00
Ivan Ivanov
36c821da34 Allow gdal_rasterize to accept -init with value of 0; changed default value to not introduce a breaking change 2019-01-18 09:50:08 +11:00
Juergen E. Fischer
b6293f23c8 osgeo4w: run python scripts with python3 (fixes #20870) 2019-01-07 15:41:11 +01:00
Alexander Bruy
6809d346ab [processing] add unittest for gdal_polygonize algorithm 2019-01-01 19:26:14 +02:00
Alexander Bruy
a5365e26eb [processing] fix handling of the mask layer in the gdal_sieve algorithm
(fix #20713)
2019-01-01 15:20:21 +02:00
Alexander Bruy
c64383702e make advanced params optional to keep algorithm API stable 2018-12-31 12:34:12 +02:00
Alexander Bruy
3d33b9f1e2 [processing] expose resampling and format options in the gdaladdo
algorithm (fix #20432)

These options actually were here but not added to the UI.
2018-12-31 12:20:31 +02:00
Alexander Bruy
1e1ed79e2d [processing] set default value for band parameters in GDAL algs (fix #20610) 2018-12-30 09:18:23 +02:00
Harrissou Sant-anna
ea9b09f2dc Use QGIS user manual for GDAL algorithms help files
because they are available for most of the algs and wouldn't be used otherwise. Also when someone hits algA help button, he should be given the algA help and not the main gdal utility doc.
2018-12-27 06:53:19 +10:00
Luigi Pirelli
c39e2b83da
Merge pull request #8445 from NaturalGIS/add_te_paramater_in_gdal_clip_by_mask
add the -te and -te_srs and -multi parameters to the gdalwarp tool used to clip rasters by mask layers
2018-12-04 11:32:52 +01:00
Giovanni Manghi
3165382dcf run prepare-commit 2018-11-09 09:37:05 +00:00
Giovanni Manghi
963e45020d add the -te and -te_srs and -multi parameters to the gdalwarp tool used to clip rasters by mask layers 2018-11-08 18:53:35 +00:00
Håvard Tveite
566d5726d7
Update extractprojection.py
indentation again...
2018-11-02 13:04:12 +01:00
Håvard Tveite
9c51f0565c
added a tr() based on feedback from jef-n 2018-11-02 11:27:33 +01:00
Håvard Tveite
1fc2f7ab1b
Some more indentation issues 2018-11-01 23:41:38 +01:00
havatv
681f73ae4e fixed some PEP8 issues 2018-11-01 17:36:00 +01:00
havatv
8976f6822f Added file output to gdal extractprojection, added exception for non-gdal sources and fixed boolean parameter handling + some formatting 2018-11-01 16:03:43 +01:00
havatv
79731715ed Update GDAL extractprojection.py to QGIS 3 2018-10-30 17:19:15 +01:00
Håvard Tveite
296df2e00c
Reintroduce GDAL extract projection
Fixes #20263 (when some other files are also fixed)
2018-10-30 17:01:06 +01:00
rldhont
1d246de545 [Processing] Add GeoPackage support in alg qgis:convertformat (forward)
This is the forward porting of #8143
2018-10-25 09:20:29 +02:00
Giovanni Manghi
fbb916d908 fixes the ogr2ogr based geoprocessing tools 2018-10-16 16:52:00 +10:00
Nyall Dawson
87e0f6961a [processing][gdal][needs-docs] Rename crop to cutline option for clarity
The previous name is unclear, as the option can expand as well
as crop the raster extent. We also don't refer anywhere else in this
dialog to the cutline, so that has no meaning to users
2018-10-15 18:29:28 +10:00
Nyall Dawson
737ab3069a [processing][gdal] Correctly handle geopackage paths with layername argument
Fixes #19938
2018-09-28 14:25:38 +10:00
Nyall Dawson
7a45702b83 [processing][gdal] Fix stylesheet for gdal algorithms 2018-09-28 14:25:38 +10:00
Nyall Dawson
7977450796 [processing][ogr] Fix conversion of non-disk based layer sources
to GDAL commands

Fixes #19946
2018-09-28 13:36:50 +10:00
Nyall Dawson
6e03253143 [processing][gdal] Fix empty fid is passed if FID option is not set
Also add full range of unit tests for OgrToPostGis algorithm.

Fixes #19947
2018-09-26 08:07:09 +10:00
Nyall Dawson
95d68e9172 [processing] Default to hiding help button for algorithms
And require that showing help is opt-in. Apart from a handful
of built-in providers, most providers will not have help pages
available within the QGIS documentation (including model and
script algorithms). Accordingly, we should hide the help button
by default and only show it for these selected providers.

Note that 3rd party algorithms can still specify custom helpUrl
urls, in which case the button WILL be shown.
2018-09-26 04:26:49 +10:00
Nyall Dawson
ea2c16dd64 [processing][gdal] Dissolve field name should be optional 2018-09-25 11:14:33 +10:00
Nyall Dawson
a3af1f9f3a [processing][gdal] Add unit tests for Dissolve algorithm
Also:

Thanks to @agiudiceandrea:

Fixes #19900
Statistics were erroneously computed on the dissolve field, rather than on the statistic attribute field as it should be.

Fixes #19307
Handle filenames with white spaces (in the same way as Buffer, OffsetCurve, OneSideBuffer, PintsAlongLines algs).
2018-09-25 11:14:33 +10:00
Nyall Dawson
e005d6e2b9 [processing][gdal] Strip newlines from custom proj CRS definitions
before passing to GDAL commands

Fixes #19855
2018-09-18 14:57:22 +10:00
Juergen E. Fischer
239e93deeb run gdal_calc on Windows and gdal_calc.py on othes platforms (fixes #19482) 2018-09-17 02:34:36 +02:00
Geoff Kimbell
cb0b335a95 [FEATURE][processing] Add custom OPTIONS to contour algorithm (#7834) 2018-09-12 04:36:06 +10:00
Nyall Dawson
c8abd40250 [processing] Fix gdal algorithm use of old wrapper API 2018-09-11 15:40:27 +10:00
nirvn
8398aae04b [needs-docs][processing] Use input layer data type for gdal algorithms
when appropriate:
- warp (i.e. reproject)
- translate (i.e. file format conversion)
- rearrange bands
- clip by extent/mask
2018-09-04 16:20:03 +07:00
Nyall Dawson
644ef6a752 [processing] Initial work on porting base GUI classes to c++
- Add abstract base class for Processing widget wrappers to c++
- Add wrapper factory interface to c++
- Make QgsProcessingGuiRegistry also register widget wrapper
factories, and be responsible for creation of new c++
processing widget wrapper instances
- Start on private c++ implementation of boolean widget wrapper,
including unit tests
2018-09-04 19:06:07 +10:00
nirvn
5cd28034bd address comments, fix test 2018-09-04 10:07:07 +07:00
nirvn
65d9911e8b Rephrase short help 2018-09-04 10:07:07 +07:00
nirvn
48b18d4c6c [processing] add parameterAsInts function 2018-09-04 10:07:07 +07:00
nirvn
97adef21bd [processing] multiple band selection wrapper should return list of ints 2018-09-04 10:07:07 +07:00
nirvn
1664ef16d2 [FEATURE][processing] gdal's rearrange band algorithm 2018-09-04 10:07:07 +07:00
Nyall Dawson
83feea46a7 [processing] Accept geometry-less layers in more algorithms
Fixes #19685
2018-08-25 15:41:13 +10:00
Nyall Dawson
5fab46f41c [processing][needs-docs] Refine names for 'Import into PostGIS' algs
Renames the existing algorithms for clarity and consistency
to the format 'Export to PostgreSQL...'. Add tags so that they
still show when searching for the old names, and add descriptions
to make their use more obvious from the toolbox.

Fixes #19658
2018-08-21 16:00:18 +10:00
Nyall Dawson
d0a705fad0 [processing][gdal] Fix ogrinfo algorithm fails when path name has spaces
Fixes #19655
2018-08-21 14:28:42 +10:00
Stephen Knox
56e605bdd1 [feature] Add parameter for field selection to Postgis OGR importer 2018-08-08 10:04:15 +10:00
Stephen Knox
53cbe26101 Fix quotes on postgis import, & fix mysql datsource formatting 2018-08-08 10:04:15 +10:00
Alexander Bruy
f524460379 [processing] homogenize label for 'additional creation options'
parameter in GDAL algorithms
2018-08-02 12:11:20 +03:00
Nyall Dawson
996c9a8d34 [processing][gdal] Assign output CRS should be optional for ogr to postgis alg 2018-07-25 08:20:07 +10:00