13463 Commits

Author SHA1 Message Date
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
Nyall Dawson
d39bdcdadd [processing] Don't create frequency distribution file for relief
algorithm by default

Refs #19570
2018-08-09 19:17:30 +10:00
Nyall Dawson
7495ec276e [processing][grass] Fix r.stream.extract definition, resurrect test 2018-08-09 12:32:27 +10:00
Nyall Dawson
e893aae190 [processing][grass] Fix definition of r.watershed, resurrect test 2018-08-09 12:32:27 +10:00
Nyall Dawson
0c24fdb883 [processing][grass] Fix r.sun parameter definition, resurrect test 2018-08-09 12:32:27 +10:00
Nyall Dawson
c50c615ecb Resurrect some processing grass tests 2018-08-09 12:32:27 +10:00
Nyall Dawson
08a8ea7b72 [processing][grass] Fix v.surf.bspline definition, add test 2018-08-09 12:32:27 +10:00
Nyall Dawson
113e16351d [processing][grass] Fix skipped outputs are still added in grass commands 2018-08-09 12:32:27 +10:00
Nyall Dawson
526e590c8d [FEATURE][processing] Add "raster pixels to points" algorithm
Refactor the existing "raster pixels to polygons" algorithm and
create a new "pixels to points" algorithm, which creates a point
feature at the center of every pixel. nodata pixels are skipped.
2018-08-09 12:02:22 +10:00
Håvard Tveite
d2b71c307b [processing] Added isclose function to VoronoyPolygons.py to avoid numerical instability
Fixes #8002 - hopefully, and adds tests
2018-08-09 09:18:54 +10:00
Alessandro Pasotti
0b502ff5b9
Merge pull request #7451 from elpaso/opencl-utils-2
[feature] OpenCL support
2018-08-08 16:33:48 +02:00