13573 Commits

Author SHA1 Message Date
Peter Petrik
419ec1f736 [mesh] fix bug in rendering datasets with inactive faces 2018-08-20 11:56:27 +02:00
rldhont
9bd23b5ac3 [Server][Feature][needs-docs] Server Cache can be manage by plugins
First commit to add a way to manage the QGIS Server cache with plugins.

In this commit only GetCapabilities document can be cached by plugins.
2018-08-20 11:20:21 +02:00
nirvn
2aebeb0157 [ui] add security warning to the python console 2018-08-20 14:41:07 +07:00
Nyall Dawson
c7845ddbb4 Deprecate unused QgsAbstractDataSourceWidget progress report signal
QgsProxyProgressTask should be used instead for progress reporting
2018-08-20 15:01:52 +10:00
Nyall Dawson
aa512636f0 Deprecate QgsFeatureRequest::(set)connectionTimeout, replace with
more generic QgsFeatureRequest::timeout
2018-08-18 16:53:32 +10:00
Nyall Dawson
2a12c6feeb New class QgsScopedProxyProgressTask, which makes it easy
to create proxy progress tasks and have their lifetime
managed automatically.
2018-08-18 08:42:34 +10:00
Nyall Dawson
0d200623b1 [FEATURE][processing] Add non-joinable output to Join by Location alg
Allows unjoinable features to be saved to a separate optional layer
2018-08-18 08:03:39 +10:00
Nyall Dawson
773371a143 [FEATURE][processing] Join by field value can export unmatched records,
and reports counts of matched/unmatched features

This gives an explicit warning to users when features were not matched,
and optionally allows them to save non-matching features to a layer.
2018-08-18 08:03:39 +10:00
Martin Dobias
6d1e420c71 min/max to minimum/maximum renaming 2018-08-17 09:34:41 +02:00
Martin Dobias
d91e12d417 Fix missing min/max values for classification when changing datasets
The min/max values were stored in the color ramp shader, but to my surprise
these values were never persisted or copied: pseudo-color raster renderer
has a separate storage for the min/max values, so we need that for mesh renderer
as well.

The QgsRasterShaderFunction is not really useful, and QgsColorRamp should not
be derived from it, making things just more confusing.
2018-08-17 09:34:41 +02:00
nirvn
f4a0e743fa Implement a QgsProviderRegistry decodeUri function + test 2018-08-16 16:46:01 +07:00
Heidi Vanparys
4ab4b42d27 Update Danish national CSW
geodata-info has been modernised (upgrade of GeoNetwork installation) and as a consequence, the CSW endpoint was changed from http://www.geodata-info.dk/registrant/srv/en/csw to https://geodata-info.dk/srv/dan/csw.
2018-08-16 19:12:53 +10:00
Martin Dobias
f37aa8c6e3
Merge pull request #7613 from wonder-sk/mesh-gui-fixes
Mesh layer fixes and improvements
2018-08-16 09:28:19 +02:00
Nyall Dawson
a0b4e024bb [processing] Respect application stylesheet in modeler/script editor dialogs 2018-08-16 09:12:22 +10:00
Nyall Dawson
4930061b21 [processing] Fix incorrect OGR warnings when loading raster layer results
Fixes #19597
2018-08-16 06:37:18 +10:00
nirvn
94300eab7c Add proxy progress task for non-background algorithms 2018-08-16 06:22:16 +10:00
Nyall Dawson
21693bd4a4 Add a QgsTask subclass for proxying progress reports from a
blocking operation via task manager

Allows use of the task manager progress reporting system from
operations which are blocking (and cannot be made background
tasks!), e.g. layout exporting, project loading.
2018-08-16 06:22:16 +10:00
Martin Dobias
ca657179f9 Address Peter's points from review 2018-08-15 14:42:45 +02:00
Nyall Dawson
c6a91dab09 [FEATURE] Use native interpolate point method instead of GEOS method
Because:
- Exactly follows curves and doesn't require segmentizing input geometry
- Also interpolates z/m values if they are present in input geometry
- Is faster
2018-08-15 14:01:59 +10:00
Nyall Dawson
8365335fd3 [FEATURE][processing] Interpolate point on line algorithm
This algorithm creates a point geometry interpolated at a
set distance along line (or polygon boundary) geometries.
2018-08-15 14:01:59 +10:00
Nyall Dawson
7ef5631d6b [FEATURE][processing] Line substring algorithm
This algorithm returns the portion of a line (or curve) which falls
between the specified start and end distances (measured from the
beginning of the line).

Z and M values are linearly interpolated from existing values.
2018-08-15 14:01:59 +10:00
Nyall Dawson
513bcb68e4 [FEATURE] New geometry API call to return a curve substring
Returns a new curve representing a substring of a curve, from
a start distance and end distance.

If z or m values are present, the output z and m will be interpolated using
the existing vertices' z or m values.

Handles curved geometries without loss.
2018-08-15 14:01:59 +10:00
Nyall Dawson
5b0bdbd4d9 Add QgsGeometryUtils method to interpolate a point on an arc given a distance 2018-08-15 14:01:59 +10:00
Nyall Dawson
56fd4e3b16 Add QgsGeometryUtils method for interpolating point between two points, with z/m handling 2018-08-15 14:01:59 +10:00
Nyall Dawson
0faa7ecdae [processing] Minor optimization for regular points algorithm 2018-08-15 10:23:02 +10:00
Nyall Dawson
9d6b5a7f53 [processing] Fix non-sequential ids in regular points algorithm 2018-08-15 10:23:02 +10:00
Matthias Kuhn
f769430419 Fix indentation 2018-08-15 10:23:02 +10:00
Jordan Feldstein
93ee06247d Count and report progress based on expected total
Algorithm appears to freeze without progress while `extent_engine.intersects(geom.constGet())` returns false. 

This keeps the progress bar continuous and smooth, even if the feature ends up not being added.

(noticed this because the algo hangs for 2 mins while processing a large dataset which I think is outside the extent somehow. None of the points going in. No apparent progress.)
2018-08-15 10:23:02 +10:00
Martin Dobias
767a7b0f5c Travis fixes 2018-08-14 19:53:27 +02:00
Matthias Kuhn
da527be9a1 Fix sip bindings 2018-08-14 19:04:56 +02:00
Martin Dobias
358d12946b Read/write mesh styling from/to project files 2018-08-14 16:42:13 +02:00
Martin Dobias
9fc2e3e148 Make scalar/vector rendering settings per dataset group
Until now there was just one scalar and vector configuration
for a mesh layer. It is however most useful to have different
rendering settings for each dataset group (quantity).
2018-08-14 16:42:13 +02:00
Martin Dobias
feddb3d3e6 Encapsulate all mesh renderer stuff in one class + fix legend updates 2018-08-14 16:36:09 +02:00
Martin Dobias
545eb9785a Generation of legend items for mesh layers 2018-08-14 16:30:09 +02:00
Martin Dobias
d093455725 Save extra datasets of mesh layers in project files
Some formats like .2dm only contain definition of mesh structure,
in order to show some data users need to add extra files with data
on that mesh. Until now the extra datasets were not persisted.
2018-08-14 16:30:09 +02:00
Martin Dobias
9273090d16 Fix issues around enabled/disabled state of scalar/vector rendering 2018-08-14 16:30:09 +02:00
Nyall Dawson
bef88f30df Minor processing parameter evaluation refactoring 2018-08-14 18:56:14 +10:00
Nyall Dawson
dfa5104855 Sipify 2018-08-14 09:24:43 +10:00
Matthias Kuhn
70dcc33496
Merge pull request #7456 from signedav/translation_projects
Translation of .qgs project data
2018-08-13 11:25:05 +02:00
Nyall Dawson
6072350942 Tooltip for project provider 2018-08-13 17:39:00 +10:00
Nyall Dawson
a4a74a907d Add new icon for 'Save in project' thanks to @nirvn 2018-08-13 15:47:01 +10:00
Nyall Dawson
63fd4bab2a [processing][FEATURE] Store models inside QGIS project files
Allows processing models to be stored inside QGIS project files,
so that opening the project makes that model available.

Some models are so intrinsically linked to the logic inside
a particular project that they have no meaning (or are totally
broken) outside of that project (e.g. models which rely
on the presence of particular map layers, relations, etc)

This change allows these models to be stored inside that project,
avoid cluttering up the "global" model provider with models
which make no sense, and making it easier to distribute a single
project with these models included.

Models are stored inside projects by clicking the new "embed
in project" button in the modeler dialog toolbar. Models can be
removed from a project from the model's right click menu in the
toolbox.
2018-08-13 15:47:01 +10:00
Nyall Dawson
3a08300112 Sipify 2018-08-13 14:33:53 +10:00
Nyall Dawson
fa68041793 Fix some clazy/clang warnings in layout 2018-08-13 14:33:53 +10:00
Nyall Dawson
db1dad5800 Followup f4d08eb9, update expected test result 2018-08-11 13:50:10 +10:00
Martin Dobias
ad4ddb186a
Merge pull request #7582 from PeterPetrik/mesh_plots
[mesh] [feature] function to get value for the point on map
2018-08-10 15:46:27 +02:00
Peter Petrik
271bab1756 introduce DataType for mesh dataset data definition and small fixes 2018-08-10 14:40:46 +02:00
Peter Petrik
9ea0bc2a1e format code and add documentation 2018-08-10 09:24:31 +02:00
Juergen E. Fischer
f4d08eb926 dbmanager/postgis: quote identifiers in urls (fixes qgis portion of #19583) 2018-08-10 09:21:52 +02:00
Peter Petrik
c79e1d0601 [mesh] [feature] add function to identify value on the point 2018-08-09 16:45:20 +02:00