53492 Commits

Author SHA1 Message Date
Alessandro Pasotti
611eb70226 Code Layout 2019-01-27 18:22:51 +01:00
Juergen E. Fischer
febbc4f0b9 osgeo4w: handle grass svn versions (fixes #21114) 2019-01-27 17:37:39 +01:00
Martin Dobias
dd97201d1b [vertex tool] Fix issue with hidden layers being editable (fixes #18434)
The problem was that QgsSnappingConfig when initialized from a project
loads global settings from QgsSettings and sets individual layer configs
based on that.

The issue was showing up only in "current layer" mode of vertex tool
because for "all layers" mode all individual layer configs were overwritten.
2019-01-27 11:46:11 +01:00
Alessandro Pasotti
dd69421486 Add a message bar to the datasource manager dialog
... and forward all app's message bar messages to
the dialog's message bar in case it is modal and
visible.

Also adds a question dialog when a /vsicurl/
add layer operation failed and offers a chance
to try the "normal" opening mode.
2019-01-26 23:18:28 +01:00
Alessandro Pasotti
45ef886173 Revert "OGR: add a download option to the protocol data source"
This reverts commit cf0d45e5adfc263df858ff41fb0958ccdc2acaad.
2019-01-26 19:25:59 +01:00
Alessandro Pasotti
1ae1e72f7c Check for libOpenCL.so at runtime
This should avoid a crash if the user
enables opencl and the library is not
found.
2019-01-25 22:32:36 +01:00
Denis Rouzaud
bba67ae65d
followup PR #8961 fix missing include 2019-01-25 12:01:06 -05:00
Alessandro Pasotti
57d3293936 Field calculator: provide a list of default field types
in case the provider does not (WFS is one of them).

Rationale: consider that there is not such
a thing like a list of supported types for WFS
and parsing the particular describeFeatureType
for the layer would restrict the types to only
those actually existing in the layer, but
we are dealing with virtual fields here (because
WFS has no column add capabilities) so
let's give the users a minimal set of useful
types to play with.

Fixes #21086
2019-01-25 17:24:57 +01:00
Alessandro Pasotti
cf0d45e5ad OGR: add a download option to the protocol data source
Fixes #21091

The issue was due to the /vsicurl/ not
being able to open a streaming endpoint.

“Things are not always what they seem; the first appearance
deceives many; [...]”

― Phaedrus
2019-01-25 15:54:08 +01:00
Nyall Dawson
acafa744a8 Typo 2019-01-25 23:47:05 +11:00
Nyall Dawson
ca06d407a0 Add custom QNetworkRequest::Attributes for initiator network request class name and internal id
And allow these to be retrieved from QgsNetworkRequestParameters.
This allows logging code to identify the area of code where a request
originated from, making debugging much easier!

Tag all requests created with appropriate class name and IDs
2019-01-25 23:47:05 +11:00
Nyall Dawson
a491e90a04 Add QgsNetworkAccessManager signal for reply download progress
This signal is propagated to the main thread QgsNetworkAccessManager
instance, so it is necessary only to connect to the main thread's signal
in order to receive notifications about requests created in any thread.

Also includes the original requestId to allow linked download progress
to original request
2019-01-25 23:47:05 +11:00
Mathieu Pellerin
df1d47b86a
[gui] Fix style manager's add button when the 'all' tab is selected 2019-01-25 19:38:28 +07:00
Nyall Dawson
4022c5fc38 Make QgsSymbolLayerUtils::symbolPreview* methods const, and utilise
internal symbol clones

Rendering symbols is a NON-CONST operation, which can permanently
alter the symbol instance (e.g. via changes made by the symbol
or symbol layer's startRender methods.).

This makes debugging super complex - because methods which look
like they are just generating previews of symbols can actually
change the original symbol instances, resulting in permanent changes
to a layer's style.

Refs #19910 (specifically, me pulling my hair out trying to deduce
seemingly random changes to layer's symbols)
2019-01-25 23:27:52 +11:00
Nyall Dawson
431861a468 [processing] Add a better API for specifying that outputs are temporary
Instead of requiring clients to generate temporary file names themselves,
(or use the cryptic "memory:" string!), this PR adds a static constant

    QgsProcessing.TEMPORARY_OUTPUT

If a layer/sink output parameter is set to QgsProcessing.TEMPORARY_OUTPUT,
then the temporary output filename will be generated automatically at
algorithm run time. This means callers don't need to mess around with
finding appropriate temporary folders and paths.

Another benefit is that TEMPORARY_OUTPUT is stored in the processing
history, so if you re-run a previous algorithm which was set to
output to a temporary file, it no longer tries to use that same
previous temporary path and instead generates a new one.
2019-01-25 23:27:08 +11:00
Alexander Bruy
a90fb87c8e
Merge pull request #8973 from alexbruy/grass-buffer
[processing] fix GRASS v.buffer algorithm for variable buffer case (fix #19377)
2019-01-25 12:49:12 +02:00
Alessandro Pasotti
be0abb3d8e
Merge pull request #8971 from elpaso/bugfix-21068-database-styles-button-order
Fix button order in DB styles dialog and add GPKG delete support
2019-01-25 09:38:50 +01:00
Alessandro Pasotti
ee0e0e1d5d
Merge pull request #8970 from elpaso/bugfix-21077-value-relation-wfs
Fix WFS context fields variable
2019-01-25 09:38:26 +01:00
Alexander Bruy
ab3adc663c [gui] enable deselect feature and create rectangle action only when
there is a vector layer in the project (fix #18141, #20333)
2019-01-25 10:00:47 +02:00
Nyall Dawson
a9553c906d
Update src/app/qgsvectorlayerloadstyledialog.cpp
Co-Authored-By: elpaso <elpaso@itopen.it>
2019-01-25 08:46:00 +01:00
Nyall Dawson
29288c2abd
Update src/app/qgsvectorlayerloadstyledialog.cpp
Co-Authored-By: elpaso <elpaso@itopen.it>
2019-01-25 08:45:54 +01:00
Alessandro Pasotti
4d134b391b Indentation 2019-01-25 08:18:50 +01:00
Nyall Dawson
3cb6a40ef2 [processing] Add API to get an import statement and classname for a parameter type 2019-01-25 18:12:11 +11:00
Nyall Dawson
60f252c2f2 [layouts] Fix attribute table filtering not utilising expression context
Fixes #21078
2019-01-25 17:02:25 +11:00
Nyall Dawson
009ee572d8 Allow access to content of POST requests in QgsNetworkReplyContent 2019-01-25 11:06:31 +11:00
Andrea Giudiceandrea
8120e4a54f Allow new shapefile MultiPoint layer creation
Just add the missing MultiPoint geometry type in the "New Shapefile Layer" dialog
2019-01-25 11:04:20 +11:00
Alexander Bruy
8919d604a8 [processing] use background color from the project settings in the rasterize algorithm (fix #19866) 2019-01-25 10:06:12 +11:00
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
bfb60e4dc7 [processing] fix GRASS v.buffer algorithm for case when buffer distance
is taken from the field (fix #19377)
2019-01-24 21:01:12 +02:00
Matthias Kuhn
7482f7a448
Merge pull request #8957 from volaya/#19607
[processing] do not allow editing model if it's missing algorithms
2019-01-24 19:53:12 +01:00
Alessandro Pasotti
38f05b5974 Fix WFS context fields variable
because the fields in the (spatialite) cached
iterator are not the same as the main iterator.

Fix #21077 - Form Value relation based on WFS layer (nothing to do with
value relations)
2019-01-24 17:48:55 +01:00
Alessandro Pasotti
861a8b7105
Merge pull request #8958 from elpaso/bugfix-20961-wfs-null-transactions
Fix NULL support in WFS server and client
2019-01-24 17:43:27 +01:00
Alessandro Pasotti
90a9852b69 Fix button order in DB styles dialog and add GPKG delete support
Fixes #21068
2019-01-24 17:38:08 +01:00
Pierre-Eric Pelloux-Prayer
25f2aba44d Include qgis_sip.h instead of qgis.h where possible (#8961)
This PR continues the work started in PR #8951.

This commit replaces occurences of #include "qgis.h" by #include "qgis_sip.h",
where possible = when files only depends on SIP_XXX features.
2019-01-24 11:33:22 -05:00
Denis Rouzaud
ff20d1800e
Merge pull request #8925 from signedav/basic-values
Enable/disable value relation widget
2019-01-24 11:31:25 -05:00
mhugent
b5febe5189
Merge pull request #8922 from mhugent/server_datasource_error
Server: catch datasource error
2019-01-24 17:27:13 +01:00
Peter Petrik
c90905bd65 fix travis 2019-01-24 16:24:46 +01:00
Peter Petrik
967893a637 [MDAL] update to 0.1.5, improve speed 2019-01-24 16:24:46 +01:00
Peter Petrik
27c670e78d expose mesh spatial index similarly to vector spatial index to API. fix travis issues and documentation 2019-01-24 16:24:46 +01:00
Peter Petrik
9d4d1c99d4 improve speed of creation spatial index for meshes 2019-01-24 16:24:46 +01:00
Peter Petrik
a83a1b29a1 render first datasetgroup instead of mesh frame 2019-01-24 16:24:46 +01:00
Julien Cabieces
abda6c42ff fixes #18497 : Correct line size method when snapping multipolygon 2019-01-24 20:55:13 +11:00
signedav
237e0bcb4a additional test enable-state in multi-selection in valueRelation 2019-01-24 10:52:37 +01:00
signedav
727bca95f2 set the enabled state of widgets again in setEnabled
because if this is called for any reason directly we are save
2019-01-24 10:51:20 +01:00
Matthias Kuhn
9bdaac9dd0
Update python/plugins/processing/modeler/EditModelAction.py
Co-Authored-By: volaya <volayaf@gmail.com>
2019-01-24 10:50:19 +01:00
Nyall Dawson
394e5d8d76 Avoid project being marked dirty as soon as its opened
This is a simple workaround, not a real fix. The real fix is to
move the symbolModified signal out of the updatePreview call,
because we should be able to refresh a preview image without
marking it as a changed symbol. But that's higher risk, so deferred
to 3.8
2019-01-24 20:45:06 +11:00
Alessandro Pasotti
15a81bdf23 Fix OWS project property issue: couldn't unset project title
This is the right behavior, btw there are other issues
in the server component that ignores the main bool
setting WMSServiceCapabilities completely.
2019-01-24 10:15:11 +01:00
Marco Hugentobler
9eeaa31c9e =default with extra-asterisk 2019-01-24 09:58:39 +01:00
Alessandro Pasotti
33788c9416 Fix typo in error message (and related tests) 2019-01-24 09:08:37 +01:00
Alessandro Pasotti
3eb388afef Respect isNull semantics by initializing null QVariant with field type 2019-01-24 09:07:54 +01:00