40827 Commits

Author SHA1 Message Date
Nyall Dawson
0a7bb4869b Allow selecting multiple items in processing multi layer input dialog
And selecting/deselecting only these items. Otherwise it can be quite
cumbersome to manually select complex sets of items (e.g. try needing
to select ~50% of the layers in a large project - there's currently
no quick way to do this.) With this change you can at least
ctrl/shift click to create selections quicker.
2017-08-17 03:52:40 +10:00
Nyall Dawson
1f2ea024f2 Allow adding layers which aren't open in the project to processing
parameters which accept lists of multiple layers

E.g. build vrt alg, merge vector layers alg

Otherwise you may need to load 100's of layers temporarily into
a project to perform algs on them
2017-08-17 03:52:40 +10:00
Nyall Dawson
a5a4d3b7e1 Port gdal build vrt to new API 2017-08-17 03:52:40 +10:00
Matthias Kuhn
f610ffaf52 Remove ParameterDataObject 2017-08-16 19:12:12 +02:00
Matthias Kuhn
ac1decd107 [travis] Install libzip for macos 2017-08-16 19:12:12 +02:00
Matthias Kuhn
7764cd9108 [travis] no longer any need for patching qsci 2017-08-16 19:12:12 +02:00
Etienne Trimaille
855f840fac always set a default name in the QGS project to avoid discrepancies with GetCapabilities 2017-08-16 18:39:23 +02:00
Matthias Kuhn
55cdc89a11 Merge pull request #5004 from jgrocha/helpviewer
[needs-docs] Refactoring of all help calls, deprecating QgsContextHelp+Helpviewer
2017-08-16 18:30:59 +02:00
Jorge Gustavo Rocha
32c81a0311 Update sip files 2017-08-16 16:20:38 +02:00
Jorge Gustavo Rocha
7dd37b39da Added documentation comments on new methods 2017-08-16 15:00:45 +02:00
Martin Dobias
0be0a4e30c Always use snapping configuration from the project in adv.digitizing dock
It was slightly confusing to have another override for snapping while it is possible
to configure "no snapping" or "all layers" snapping mode in project anyway.
And with the nice snapping toolbar it can be also done very quickly.
2017-08-16 14:37:19 +02:00
Martin Dobias
42933a279b Remove class members that were never used 2017-08-16 14:37:19 +02:00
Denis Rouzaud
d03f599093 add Dockerfile for automated build on docker cloud 2017-08-16 11:37:58 +02:00
Mathieu Pellerin
a9d8d395d2 [processing] restore near black and hillshade gdal algs (#5028) 2017-08-16 11:26:10 +07:00
Jorge Gustavo Rocha
fe59a19e17 Change all ocurrences on_buttonBox_helpRequested to showHelp
Add help button to 3 dialogs
Fix missing QStringLiteral
Fix CMakeLists.txt indentation
Fix qhelp.h and qgis_sip.h includes with <>
2017-08-15 23:51:03 +02:00
Denis Rouzaud
19efee8a61 alog:along typo (#5025) 2017-08-15 18:21:35 +02:00
Larry Shaffer
83aa1adf1e Add support for finding zipconf.h in separate location; use include dirs
LIBZIP_INCLUDE_DIRS could end up with duplicate entries, but seems to be
the simplest way of supporting headers installed to multiple locations.
2017-08-15 09:13:05 -04:00
Nyall Dawson
755980fe03 Merge pull request #5023 from nyalldawson/gdal_test
Unblacklist Processing GDAL tests
2017-08-15 21:51:20 +10:00
Nyall Dawson
aece517c50 Avoid duplicate geometry columns, invalid geometry column name in gdal points along lines alg 2017-08-15 20:58:08 +10:00
Nyall Dawson
3d1be95ad2 More comprehensive updating of gdal command when parameters change 2017-08-15 20:57:27 +10:00
Nyall Dawson
f88e62fb4a Unblacklist Processing GDAL test 2017-08-15 17:50:12 +10:00
Alessandro Pasotti
3922efcbc6 Merge pull request #5022 from boundlessgeo/gpkg-show-attributes
Geopackage fix mixed geometry layers and attributes
2017-08-15 08:20:40 +02:00
Alessandro Pasotti
7d074de90d Geopackage fix mixed geometry layers and attributes
In addition to geometry filtered layers for each geometry
type in a mixed-geometry type layer adds a table
layer with all attributes.

Tehre is no perfetc solution here, if the layer is created
with a filter on geometrytype, the attributes are not shown
(this is probably a pre-existing bug), if the layer is added
as is, only the first geometry type is drawn.

With this implementation at least all data (attributes and
geometries) are accessible in some way.

Note that geopackage layers added by DB Manager do not show
all geometries of a mixed type layer.
2017-08-14 20:25:47 +02:00
Alessandro Pasotti
7d4f81d4c6 Merge pull request #5019 from boundlessgeo/gpkg-dbmanager-sync
Geopackage: Use the same settings for DB Manager and browser
2017-08-14 16:42:38 +02:00
Matthias Kuhn
80e8ff04e0 Merge pull request #5014 from m-kuhn/enumgeomfunc
Return enum instead of int from QgsGeometry operations
2017-08-14 15:06:06 +02:00
Alessandro Pasotti
04f79d174d Geopackage: Use the same settings for DB Manager and browser 2017-08-14 15:04:54 +02:00
Alessandro Pasotti
904cd6f104 Merge pull request #5018 from boundlessgeo/gpkg-show-tables
Browser tree: also show geopackage geometryless layers as tables
2017-08-14 14:19:10 +02:00
arnaud.morvan@camptocamp.com
b26e6812d4 [processing] Check all parameter's values in ModelerParametersDialog
Check that all parameter's values pass the validity check,
even if not returned as QgsProcessingModelChildParameterSource.

In case of list, tests that it is really a QgsProcessingModelChildParameterSource list,
and create a QgsProcessingModelChildParameterSource from the list if it is not the case
(useful for custom parameters that return lists as ParameterFieldsMapping).
2017-08-14 13:48:50 +02:00
arnaud.morvan@camptocamp.com
b3a9e46cfe [processing] Port refactor fields to new API 2017-08-14 13:48:50 +02:00
Alessandro Pasotti
11f179154f Browser tree: also show geometryless layers as tables 2017-08-14 13:29:06 +02:00
Matthias Kuhn
3d53a2dfb8
Spelling 2017-08-14 13:11:13 +02:00
Matthias Kuhn
fca603caa3
Fix splitFeatures 2017-08-14 12:59:40 +02:00
Matthias Kuhn
cb29b2e6ef
Fix crash in test 2017-08-14 12:44:55 +02:00
Alessandro Pasotti
2364801634 Merge pull request #5016 from boundlessgeo/gpkg-handle-collections
Geopackage: proper handling of geometry ANY
2017-08-14 12:19:01 +02:00
Matthias Kuhn
0683528d9a
More doxymentation 2017-08-14 10:52:43 +02:00
Matthias Kuhn
a70bfe6ff8
More doxymentation 2017-08-14 10:43:37 +02:00
Alessandro Pasotti
ad2f760c0e GPKG: proper handling of unknown geometry
This handles the test use case for layer:
Layer name: geometry2d
Geometry: Unknown (any)
Feature Count: 8

The browser tree will now show the different geometry
layers and allow them to be added in the canvas,
GeometryCollections are skipped.
2017-08-14 10:39:57 +02:00
Matthias Kuhn
8294c434c6
More doxymentation 2017-08-14 10:37:51 +02:00
Matthias Kuhn
a4dac6ace2
Define params as /Out/ 2017-08-14 08:58:59 +02:00
Matthias Kuhn
f9ba9052b5
Fix segfault 2017-08-14 08:19:35 +02:00
Matthias Kuhn
0df873c505
Increase QgsGeometry::OperationResult values
To avoid collisions with old enums and make it easier for plugin devs to
determine if their values have already been ported to QGIS 3.0 or not.
2017-08-13 23:08:45 +02:00
Denis Rouzaud
86e8da74cb
Return enum instead of int from QgsGeometry operations 2017-08-13 23:08:45 +02:00
Nyall Dawson
8d615543b7 Merge pull request #4835 from nyalldawson/more_processing
[processing] Restore some gdal provider algorithms
2017-08-14 06:31:08 +10:00
Nyall Dawson
f9750dde52 Port gdal color relief to new API 2017-08-14 05:55:50 +10:00
Nyall Dawson
1cbbbc4b83 Port gdal tri alg to new API 2017-08-14 05:49:18 +10:00
Nyall Dawson
ab2886dc63 Port gdal assign projection to new api 2017-08-14 05:41:54 +10:00
Nyall Dawson
19e5886b87 More reliable updates to the gdal command shown
By also checking for child widget signals - otherwise we don't
catch signals when compound widgets (such as raster layer source
widgets) are changed
2017-08-14 05:41:00 +10:00
Nyall Dawson
95fe5cdc04 Fix errors calculating gdal command when dialog is being constructed 2017-08-14 05:24:59 +10:00
Nyall Dawson
ba6e2dc940 Fix showing gdal command in algorithm dialog 2017-08-14 05:19:29 +10:00
Nyall Dawson
3d3d2975a4 Followup fixes to ogr2ogrpostgis alg porting 2017-08-14 05:19:00 +10:00