54742 Commits

Author SHA1 Message Date
Nyall Dawson
48d2a37057 [FEATURE] New line symbol type: Hash line
This line symbol type is designed to replicate the ArcGIS Hash Line
symbol layer type. It allows for a repeating line segment to be
drawn over the length of a feature, with a line-sub symbol used
to render each individual segment.

To reduce code duplication, this is heavily based off the current
line marker symbol layer, since the functionality is almost
identical (draw some sub symbol at some interval along a line).
Accordingly, I've split off QgsMarkerLineSymbolLayer to move
as much of the common functionality as possible to a new abstract
base class, so that only the actual marker/line segment rendering
occurs in the marker line/hash line subclasses.

This also gives the hash line all the existing placement options
permissible for marker lines -- e.g. first/last vertex, mid points,
regular intervals, etc.

The hash line length and angle can have data defined overrides,
which are evaluated per-line segment, allowing for the hash line
to change size and angle over the length of a single rendered
feature.
2019-04-03 02:31:27 +10:00
Nyall Dawson
59ed07891a Also store x/y coordinates of nearest points on features when calculating
nearest features

This can be useful, and is difficult to calculate later!
2019-04-03 02:31:03 +10:00
Nyall Dawson
95af4d4a45 [FEATURE] New Processing algorithm "Join attributes by nearest"
K-nearest neighbour joins from the Processing toolbox!

This algorithm takes an input vector layer and creates a new
vector layer that is an with additional attributes in its attribute table
The additional attributes and their values are taken from a second
vector layer, where features are joined by finding the closest features
from each layer.

By default only the single nearest feature is joined, but optionally
the join can use the n-nearest neighboring features instead.

If a maximum distance is specified, then only features which are
closer than this distance will be matched.
2019-04-03 02:31:03 +10:00
Nyall Dawson
8d6e3dc911 [FEATURE][API] Add method to QgsSpatialIndex to perform
nearest neighbor search based on QgsGeometry to QgsGeometries

Previously only point - geometry was possible. But with this
change, you can safely and accurately use QgsSpatialIndex
to determine the nearest neighbours between any types of
geometries.
2019-04-03 02:31:03 +10:00
Juergen E. Fischer
2ef99da242 legend: truncate excessively long tooltips (fixes #21737) 2019-04-02 17:18:40 +02:00
Juergen E. Fischer
c6382553cd don't relink object if just the shared objects/DLL is changed 2019-04-02 17:14:09 +02:00
Juergen E. Fischer
95bd7480d0 postgres provider: use st_estimatedextent only when 'use estimated metadata' is enabled (fixes #21718) 2019-04-02 15:59:51 +02:00
Juergen E. Fischer
a03658663f show more verbose PROJ release info 2019-04-02 14:04:33 +02:00
Juergen E. Fischer
2a6629ef56 fix build (followup 7674e1657b476889afe63ee8f8b9fd93f581d3c6) 2019-04-02 10:27:05 +02:00
Nyall Dawson
7e23f4ddf6 Run QgsJsonUtils test on Travis
This was originally blacklisted back in the 3.0 transition due to
issues with Qt 5.6. We no longer support that version.
2019-04-02 14:34:46 +10:00
Nyall Dawson
6248bb8eea Fix failing TestQgsJsonUtils 2019-04-02 14:34:46 +10:00
Nyall Dawson
3c6c0ac2d5 Fix locally failing TestQgsColorScheme 2019-04-02 14:34:46 +10:00
Nyall Dawson
d1503e030a Fix network access manager test failing due to server change 2019-04-02 14:34:46 +10:00
Denis Rouzaud
eacd47bfa6
[Travis] Fix backport branch being run as push job (#9680) 2019-04-01 17:29:37 -05:00
Alessandro Pasotti
5b586e8139
Merge pull request #9671 from elpaso/bugfix-server-locale-override
[server] Allow locale and group separator override
2019-04-01 22:50:55 +02:00
Matthias Kuhn
1bb3f99f0e Properly convert to QgsVectorLayerEditpassTrough subclass 2019-04-02 06:18:45 +10:00
Chris Holden
356ec23afa Include missing include of <functional>
Caught trying to build with GCC7 and MSVC
2019-04-02 06:18:28 +10:00
Nyall Dawson
39a255c1b9 [processing] Use null instead of nan for invalid stat values in join by location summary 2019-04-02 06:17:56 +10:00
Nyall Dawson
7bf9279a53 [processing] Fix invalid reprojection in join by location (summary) 2019-04-02 06:17:56 +10:00
Nyall Dawson
9376cb098b Re-run attribute table tests on Travis
Should be fixed with proxy task fix
2019-04-02 06:17:29 +10:00
Nyall Dawson
b28227fa7f Fix stuck tasks when proxied task using a proxy progress task
completes before the proxy task has been started by task manager

Fixes #21589, fixes #19761
2019-04-02 06:17:29 +10:00
Nyall Dawson
7674e1657b [processing] Include version information at start of log
Start the log text with QGIS/Qt/GEOS/GDAL version information strings.
This is helpful for debugging and accountability.
2019-04-02 06:16:45 +10:00
Alessandro Pasotti
0355611b60 Added \since QGIS 3.8 2019-04-01 17:25:36 +02:00
Juergen E. Fischer
8ec02625c3 debian packaging: only break/replace older python-qgis* packages (fixes #21722; followup 957c51e6916) 2019-04-01 17:17:27 +02:00
Alessandro Pasotti
77b0e23299 Add test reference file for server locale overrides 2019-04-01 16:28:46 +02:00
Alessandro Pasotti
8a32848f85 Add tests for server locale override options 2019-04-01 16:24:24 +02:00
Alessandro Pasotti
120ae773b6 [server][feature][needs-docs] Add env vars to override locale ...
...and group separator:

QGIS_SERVER_OVERRIDE_SYSTEM_LOCALE (default '')
QGIS_SERVER_SHOW_GROUP_SEPARATOR (default false)
2019-04-01 16:22:37 +02:00
Juergen E. Fischer
88513284d4 fix removal of temporary directories (fixes #21292) 2019-04-01 14:18:30 +02:00
Alessandro Pasotti
62895d1f42
Merge pull request #9619 from elpaso/plugin-dependencies
Plugin dependencies optional support
2019-04-01 09:43:28 +02:00
Alessandro Pasotti
2174577ee3
Merge pull request #9661 from elpaso/bugfix-21714-filewriter-field-length
Fix wrong field length in file writer
2019-04-01 08:24:20 +02:00
Nyall Dawson
4472820ead More reference images and masks for layout attribute table tests 2019-04-01 16:11:31 +10:00
Nyall Dawson
824ba076da More reference images and masks for 3d tests 2019-04-01 16:11:31 +10:00
Nyall Dawson
25980ab0ce Fix crash in stats summary on debug builds 2019-04-01 16:11:31 +10:00
Nyall Dawson
9820e6b222 Revert "fix removal of temporary directories"
This reverts commit b141349c90be91f191f612b7e2a349adde3c6349, which
causes crashes in almost every unit test.
2019-04-01 09:30:50 +10:00
Nyall Dawson
e5a4716018 Remove outdated comment 2019-04-01 08:52:10 +10:00
Nyall Dawson
2d3e9e156f
Update testqgsvectorfilewriter.cpp 2019-04-01 08:51:04 +10:00
Andrea Giudiceandrea
70f3bd7f60 deleteShapeFile(): delete also ".cpg", ".sbn", ".sbx", ".idm", ".ind" files
Make QgsVectorFileWriter::deleteShapeFile() delete ".cpg" (and ".sbn", ".sbx", ".idm", ".ind") files along with ".shp", ".shx", ".dbf", ".prj", ".qix", ".qpj" ones.
2019-04-01 08:37:36 +10:00
Juergen E. Fischer
b141349c90 fix removal of temporary directories 2019-04-01 00:02:12 +02:00
Alessandro Pasotti
013bdf9405 Fix wrong field length in file writer
fixes #21714
2019-03-31 20:51:21 +02:00
Alessandro Pasotti
ca80fb6052
Merge pull request #9653 from elpaso/bugfix-badlayers-apply-no-style
Fix bad layers style loss when "apply"
2019-03-30 10:32:30 +01:00
nirvn
41f3ac0bbc [ui] Don't disable 'keep unavailable layers' button when applying changes 2019-03-30 10:41:48 +07:00
lbartoletti
59c00b8823 add tests 2019-03-30 11:03:01 +10:00
lbartoletti
e3d0005a82 Fix a crash when asJson is called on an empty PolygonGeometry 2019-03-30 11:03:01 +10:00
volaya
165ab8b25f [processing] do not export input sdat files 2019-03-30 11:02:25 +10:00
Juergen E. Fischer
b9a53d4204 osgeo4w: fix starting of qt5 designer 2019-03-29 21:45:04 +01:00
Blottiere Paul
43ed203e89
Merge pull request #9646 from pblottiere/server_exceptions
[server] Sanitize WMS exceptions
2019-03-29 15:30:25 +01:00
Blottiere Paul
9ae06a52bf Fix test 2019-03-29 14:59:38 +01:00
Blottiere Paul
fd4ac20ea8 Update tests 2019-03-29 14:15:42 +01:00
Blottiere Paul
7e39226879 Remove unused qgis exception code 2019-03-29 14:15:27 +01:00
Blottiere Paul
8944465af5 Update doc 2019-03-29 12:20:39 +01:00