49498 Commits

Author SHA1 Message Date
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
a4386d6116 [FEATURE] line_substring function
Returns the portion of a line (or curve) geometry 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.

Fixes #15611
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
Nyall Dawson
553090b17a Fix warning 2018-08-15 08:55:02 +10:00
Matthias Kuhn
546ecbe413
Merge pull request #7611 from PeterPetrik/translation_projects_missing_header
The qgstranslationcontext.h is missing in an install folder after build.
2018-08-14 21:45:59 +02:00
Matthias Kuhn
da527be9a1 Fix sip bindings 2018-08-14 19:04:56 +02:00
viktor.sklencar@lutraconsulting.co.uk
238b24559c The qgstranslationcontext.h is missing in install folder after build.
Related to https://github.com/qgis/QGIS/pull/7456
2018-08-14 16:17:53 +02:00
Nyall Dawson
6fcc1626f9 Use QgsPoint( QgsPointXY ) constructor 2018-08-14 20:30:08 +10:00
Nyall Dawson
0b6bfc327a Fix some untranslatable strings 2018-08-14 20:30:08 +10:00
Nyall Dawson
3f9ea774c4 Resurrect display of interpolated z/m in identify results, and
add closest point x/y (closest point on geometry)

Add tests

Fixes #19403
2018-08-14 20:30:08 +10:00
Nyall Dawson
0fc1c9d4a6 Fix clang/clazy warnings 2018-08-14 20:30:08 +10:00
Nyall Dawson
bef88f30df Minor processing parameter evaluation refactoring 2018-08-14 18:56:14 +10:00
Nyall Dawson
9a1f129640 Show field alias in tooltip in form editor tab 2018-08-14 16:00:19 +10:00
Nyall Dawson
d8f3ec4074 Fix geometryless features are skipped when pasting as a new scratch layer 2018-08-14 10:57:44 +10:00
Nyall Dawson
079c9fa6b6 Expand unit test coverage 2018-08-14 10:57:44 +10:00
Nyall Dawson
ac193d05cf Fix clang/clazy warnings 2018-08-14 09:33:46 +10:00
Nyall Dawson
dfa5104855 Sipify 2018-08-14 09:24:43 +10:00
Nyall Dawson
300b8a79df QStringLiteral 2018-08-14 08:23:41 +10:00
Nyall Dawson
bf25742ed3 Fix build warning 2018-08-14 08:20:39 +10:00
Matthias Kuhn
72e99d5d3f
Merge pull request #7602 from m-kuhn/wfsFix
Fix freeze with redirected WFS
2018-08-13 21:42:59 +02:00
Nyall Dawson
cca7141180 Fix attribute form labels show _ character if field name/alias has & characters
Qt treats these like shortcut key indicators in QLabel text if
they aren't escaped by a double &.
2018-08-14 05:17:40 +10:00
Matthias Kuhn
ec8a5543db
Fix freeze with redirected WFS 2018-08-13 15:47:29 +02:00
Alexander Bruy
c515a666b2 [processing] fix typo 2018-08-13 15:25:23 +03: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
29ccd1af71 New icon for dock/undock thanks to @nirvn 2018-08-13 16:44:34 +10:00
Nyall Dawson
1e051f0efb [FEATURE] Add a button in attribute table toolbar to switch between
docked and window mode

Previously you had to change an option in the settings dialog and
open a new table in order to switch between docked/undocked, but
that's painful if you decide after a table is already open that
you'd like to dock/undock it...
2018-08-13 16:44:34 +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
69201021d5 [layouts] Fix incorrect filename for atlas features when using
@atlas_feature

Fixes #19552
2018-08-13 11:09:13 +10:00
Nyall Dawson
6e2e0732f5 [layouts] Fix crash on report section delete
Fixes #19447
2018-08-13 11:09:00 +10:00
Nyall Dawson
73f3164fe4 Fix memory leak in filter multipoint 2018-08-12 17:15:40 +10:00
Rudi von Staden
f7204faa5b Update .gitignore to not track default windows build directories 2018-08-12 04:38:41 +10:00
Matthias Kuhn
02e6ec19aa
Merge pull request #7591 from m-kuhn/fixAndroidNative
Fix android native
2018-08-11 07:24:34 +02:00
Matthias Kuhn
bcaf597a0b
Merge pull request #7594 from nyalldawson/fix_test
Followup f4d08eb9, update expected test result
2018-08-11 07:23:48 +02: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
Matthias Kuhn
f98cc11bf5
Do not link to QtDBus on Androi 2018-08-10 11:48:34 +02:00
Juergen E. Fischer
af075bfc6c run scripts/scandeps.pl (followup 6e30c626) 2018-08-10 10:58:45 +02:00
Matthias Kuhn
fc259a2141
No DBus on Android 2018-08-10 10:51:06 +02:00