43421 Commits

Author SHA1 Message Date
Juergen E. Fischer
5ffbb359d0 disable translation of mime types in raster layer properties 2017-11-02 09:02:12 +01:00
Matthias Kuhn
8bfa3ebd77 Log when savepoint creation fails 2017-11-02 08:56:38 +01:00
Werner Macho
b9c572691e
Update tsstat.pl
fix small typo
2017-11-02 08:30:38 +01:00
Borys Jurgiel
5fe43efe72
Merge pull request #5509 from borysiasty/settings
Remove dead code
2017-11-01 23:08:01 +01:00
Matthias Kuhn
5d2c39bbfb Add doxymentation 2017-11-01 22:20:17 +01:00
Matthias Kuhn
e0c1f0b050 Fix abstract MOCed class generation 2017-11-01 22:20:17 +01:00
Matthias Kuhn
c3e2adce83 Const fixes for QgsSearchWidgetWrapper 2017-11-01 22:20:17 +01:00
Matthias Kuhn
69a28d823f MOC compatible SIP_ABSTRACT version
New version supports the following notation

    class QgsOutClass : public QObject // SIP_ABSTRACT

MOC does not like lines like the following one and silently refuses to build the meta object for such classes

    class QgsOutClass : public QObject SIP_ABSTRACT
2017-11-01 22:20:17 +01:00
Matthias Kuhn
295a578e2e Make text translatable 2017-11-01 22:20:17 +01:00
Nyall Dawson
7dc48f3a17
Merge pull request #5508 from DelazJ/message_spacing
Fixing messages displayed in GUI
2017-11-02 08:13:25 +11:00
Borys Jurgiel
2d30c1156f Remove dead code 2017-11-01 21:53:26 +01:00
Borys Jurgiel
ac6c598f32 Merge branch 'master' of github.com:qgis/QGIS 2017-11-01 18:32:11 +01:00
Juergen E. Fischer
e9d2fd676d add qt5-default to debian/ubuntu dependency list in INSTALL 2017-11-01 15:46:56 +01:00
Nyall Dawson
9083420312 More unit tests 2017-11-01 21:48:20 +11:00
Nyall Dawson
f4d3152eea [ogr] Also discard features with empty geometries
when feature request specifies a filter rect

OGR sometimes returns a feature with empty geometry (e.g.
a multipolygon with a polygon child with no rings) even when
OGR_L_SetSpatialFilterRect has been set for the layer.

Refs #17365
2017-11-01 21:48:20 +11:00
Nyall Dawson
eea155d6e2 Fix crash when attempting to render multipolygon with missing exterior ring
This commit fixes a possible crash when the vector layer renderer
attempts to render a multipolygon containing a polygon without
an exterior ring.

The underlying cause of the creation of this invalid geometry is deeper,
but this commit hardens the renderer and makes it more robust for
handling bad geometries.

Fixes #17365
2017-11-01 21:48:20 +11:00
Juergen E. Fischer
6418a831a4 remove remaining references to pyspatialite (followup 39816cf84) 2017-11-01 10:45:28 +01:00
lbartoletti
8105b75085 Fix issue 17355 2017-11-01 10:18:01 +01:00
Juergen E. Fischer
db54b4ea48 fix windows build 2017-11-01 07:52:22 +01:00
Mathieu Pellerin
18785da4d5
make use of the pin icon in recent projects menu 2017-11-01 10:43:52 +07:00
Nyall Dawson
8afbaebd21
Merge pull request #5482 from rduivenvoorde/create_WITH_CLANG_TIDY-take2
adding WITH_CLANG_TIDY as advanced, so you can build without it even …
2017-11-01 07:32:04 +11:00
Nyall Dawson
48d43d37ed
Merge pull request #5497 from nyalldawson/svg_crash
Fix crashes and issues with SVG rendering
2017-11-01 05:21:37 +11:00
Sandro Mani
8b7fd5428f [Globe] Port for QgsGeometry::constGet API changes 2017-10-31 15:04:24 +01:00
Luigi Pirelli
192d6f93d0 Update Attr Table after field calculation: fixes #17312 2017-10-31 14:20:19 +01:00
lbartoletti
5f750e72cb Fix connection 2017-10-31 11:45:10 +01:00
Matthias Kuhn
87643e9c8f Harden taskmanager tests
By using local variables and functions interdependency of the tests is decreased
2017-10-31 07:28:09 +01:00
Nyall Dawson
5000f9aac3
Merge pull request #5488 from nyalldawson/network
[processing] Fix some issues with network analysis shortest path algs
2017-10-31 17:27:58 +11:00
nirvn
9a1cd9dde7 [welcome page] avoid vertical shift when pinning/unpinning projects 2017-10-31 13:12:42 +07:00
Nyall Dawson
05ad0bc04a Update API break dox 2017-10-31 16:01:33 +10:00
Nyall Dawson
dbe2b340ac Update copyright date 2017-10-31 16:01:33 +10:00
Nyall Dawson
2bdc323d72 More test tolerance 2017-10-31 16:01:33 +10:00
Nyall Dawson
284c4d35cd Fix tests 2017-10-31 16:01:33 +10:00
Nyall Dawson
8f22f5eb3b [processing] Misc fixes for network analysis tools
Also maintain attributes in service area from layer alg, add test

Fixes #17325
2017-10-31 16:01:32 +10:00
Nyall Dawson
8d32bf729e Fix QgsGraphAnalyzer::dijkstra traverses through edges backwards
This means that it flips the direction of the graph edge, breaking
route restrictions.

Refs #17325
2017-10-31 16:01:32 +10:00
Nyall Dawson
57edec668e Fix incorrect enum values in network analysis algs
Didn't result in a bug, but made the code confusing to read
2017-10-31 16:01:32 +10:00
Nyall Dawson
199b569275 Fix broken network analysis network tolerance option
The tolerance option was not correctly calculated, resulting in
semi-random behavior for networks which relied on a non-zero
tolerance.

Also possible speed boost for complex networks by using
proper spatial index instead of custom sorting/filtering code.

Refs #17325
2017-10-31 16:01:32 +10:00
Nyall Dawson
ae8dc1cfb3 Optimise and simplify tie point calculation 2017-10-31 16:00:19 +10:00
Nyall Dawson
8a68a410bf Simplify overly complex code 2017-10-31 16:00:19 +10:00
Nyall Dawson
ab05fe7603 Fix extremely confusing network graph API naming
Since names of api calls were backwards to expectations
2017-10-31 16:00:19 +10:00
Nyall Dawson
b337335e9c Start unit tests for network analysis lib 2017-10-31 16:00:18 +10:00
Nyall Dawson
5ffd7214ee [processing] Shortest path handling for multipoint layers
Fixes shortest path algorithms fail for multipoint source layers
or layers with null geometries

Refs #17325
2017-10-31 16:00:18 +10:00
Nyall Dawson
4149da0556 Better reporting of errors when paths cannot be found, also
output point but with no geometry and missing attributes so
that it's clear which points could not be linked
2017-10-31 16:00:18 +10:00
Nyall Dawson
36a38f4e2d [processing] Keep attributes from start/end points layer in
output layer for shortest path algorithms

Otherwise the paths are nearly impossible to link back to
the source layer for further analysis
2017-10-31 16:00:18 +10:00
Nyall Dawson
49254384df Fix index out of range error in shortest path algs 2017-10-31 16:00:18 +10:00
nirvn
d1d95b1d6f [welcome page] reverse chronological order for pinned projects 2017-10-31 10:23:49 +07:00
Nyall Dawson
0b2de85fe7 Check file modified time when retrieving svg images from cache
If file has been modified since the cache, regenerate a new cache
image.

We don't want to check the file modified time too often though,
(e.g., we don't want to check for every point render in a 100k
point file), so use a hardcoded 30 second minimum time between
consecutive file modified checks.

This means that file modifications occuring more often than
every 30 seconds won't be picked up till 30 seconds has elapsed
since the last modification. But at the same time it means that
if the render takes < 30 seconds we'll only check each svg
at most once (and if a render takes > 30 seconds, adding a few
more milliseconds won't hurt!).

Fixes #13565
2017-10-31 12:12:24 +10:00
Nyall Dawson
b07f6757a5 Cleanup QgsSvgCache API
- Remove QgsSvgCacheEntry from public API (is an internal detail only)
- Modernize code
- Make protected QgsSvgCache members private, since this class is not
designed to be subclassed
2017-10-31 10:43:44 +10:00
Nyall Dawson
a6eea7205c Fix crashes caused by concurrent rendering of cached QPictures from QgsSvgCache
QgsSvgCache::svgAsPicture was rendering an implicitly shared copy when
the picture had already been cached. It turns out that rendering an
implicitly shared QPicture copy isn't thread safe, and rendering shared
copies simulataneously across different threads leads quickly to a crash.

Accordingly we always detach the QPicture objects returned by
svgAsPicture, so that the returned QPicture is safe to use across threads.

Also add unit tests for this, and a similar unit test to verify that
rendering of QImage based cached copies does *not* suffer the same
issue.

Fixes #17089, #17077
2017-10-31 10:24:18 +10:00
Juergen E. Fischer
3ae9ac5e82 translation string fixes 2017-10-30 20:13:51 +01:00
Nyall Dawson
942f431f0f Fix crash when rendering with SVG based symbols and SVG cache is filled
When the svg cache was full, any attempt to render an svg from the
cache would crash QGIS.

Fixes #16643
2017-10-30 21:32:48 +10:00