36850 Commits

Author SHA1 Message Date
Juergen E. Fischer
07aa5598f2 fix directory detection in check_spelling.sh when pre-commit hook is linked to prepare-commit.sh 2017-02-07 14:49:43 +01:00
Juergen E. Fischer
e5fd81ffc3 osgeo4w: fix running of python tests 2017-02-07 14:47:07 +01:00
Juergen E. Fischer
5b27d827aa update scripts/update_ts.sh to use pylupdate5 2017-02-07 14:37:13 +01:00
Alexander Bruy
94a263995b Merge branch 'processing-makevalid' 2017-02-07 12:52:42 +02:00
Alexander Bruy
d3003de61c [processing] add tags and short help 2017-02-07 12:52:05 +02:00
Alexander Bruy
91fe2f93c4 explicitly convert geometry to multi 2017-02-07 12:52:04 +02:00
Alexander Bruy
7df04ac7e7 [processing] Fix Geometry algorithm always produces multi-geometry
Also added code to handle GeometryCollections
2017-02-07 12:52:04 +02:00
Alexander Bruy
5a5c1bf6e1 test for Processing "fix geometries" algorithm 2017-02-07 12:52:04 +02:00
Alexander Bruy
0293bc76a0 [FEATURE][processing] algorithm to fix invalid geometries using native
makeValid() implementation
2017-02-07 12:52:04 +02:00
Harrissou Sant-anna
11f083623c UI update to the raster & vector save as dialogs (#4083) 2017-02-07 17:36:35 +07:00
nirvn
ae74220ecb fix crash caused by use of std::sort and sort function to conforming to strict weak ordering 2017-02-07 16:40:02 +07:00
Denis Rouzaud
0d1b7dc71d add missing QScintilla includes 2017-02-07 07:41:43 +01:00
Mathieu Pellerin
6f2045fd84 fix QgsProject::readNumEntry() validity check (#4112) 2017-02-07 11:32:23 +07:00
Nyall Dawson
0f5b3fd129 Merge pull request #4110 from nyalldawson/label_cache
[FEATURE] Cache labeling result to avoid unnecessary redraws when refreshing canvas
2017-02-07 14:29:32 +10:00
Nyall Dawson
61523c8124 Update label test masks following sort algorithm change
std::sort is returning a slightly different sort order when
label z order (or label cost) is equal

Given that the order in these cases is effectively arbitrary
I've updated the test masks to accept either order.
2017-02-07 14:08:02 +10:00
Nyall Dawson
57d6f6d068 Merge pull request #4107 from DelazJ/tips
Update Startup tips
2017-02-07 13:25:42 +10:00
Nyall Dawson
f3d53b8de9 Fix inefficient code 2017-02-07 13:03:18 +10:00
Nyall Dawson
a43abeced4 Fix failing test 2017-02-07 12:58:22 +10:00
Nyall Dawson
3ed6f5b72a Replace deprecated qSort/qStableSort/qGreater/qLess with std:: algs 2017-02-07 12:47:00 +10:00
Nyall Dawson
8408777448 Replace deprecated qSwap with std::swap 2017-02-07 12:33:24 +10:00
Nyall Dawson
337dabea4e Swap QSharedPointer to std::shared_ptr 2017-02-07 12:32:02 +10:00
Nyall Dawson
aed6c735a6 Swap QScopedPointer to std::unique_ptr
Why?
- no benefits to QScopedPointer over std::unique_ptr
- unlike QScopedPointer, std::unique_ptr has no overhead
over regular pointers
- using standard language features makes it more likely that
compilers can optimise this use and static analysers can
correctly handle code using unique_ptrs
- QScopedPointer has an (IMO) uncertain future (given that
Qt is dropping features which have become part of the c++
standard). Better to port now before wider use of QScopedPointer
in the codebase!
2017-02-07 12:08:57 +10:00
Nyall Dawson
a08137f101 Add unit tests for map renderer label caching 2017-02-07 11:24:30 +10:00
Nyall Dawson
9757116a26 Fix crash 2017-02-07 10:07:19 +10:00
Nyall Dawson
d0d9bab0a6 Don't cache labeling if blend modes are used
The flattening of the label results to an image blocks
blend modes applying correctly to underlying layers
2017-02-07 10:07:19 +10:00
Nyall Dawson
2b3805eea5 Reuse existing labeling results if cached labels were redrawn 2017-02-07 10:07:19 +10:00
Nyall Dawson
33eb4bc0c4 [FEATURE] Cache labeling result to avoid unnecessary redraws
when refreshing canvas

This change allows the labeling results to be cached to an image
following a map render. If the cached label result image can be
reused for the next render then it will be, avoiding the need
to redraw all layers participating in the labeling problem and
resolving the labeling solution.

Basically this means that canvas refreshes as a result of changes
to any NON-LABELED layer are much faster. (Changing a layer which
is part of the labeling solution still requires all labeled
layers to be completely redrawn)
2017-02-07 10:07:19 +10:00
Juergen E. Fischer
9475850f39 * update INSTALL
* osgeo4w: search qt5 first and use pyrcc5.bat
2017-02-07 00:58:56 +01:00
Harrissou Sant-anna
bfd18c4a6d Update Startup tips 2017-02-07 00:03:47 +01:00
Denis Rouzaud
64748aaa89 compile custom widgets on Travis 2017-02-06 13:55:11 +01:00
Denis Rouzaud
d84725fce8 [custom widgets] add missing file widget 2017-02-06 13:30:53 +01:00
Denis Rouzaud
6f5161a6f0 spelling fix 2017-02-06 11:48:47 +01:00
Mathieu Pellerin
d99faecf3e [ui] make layer rendering collapsed by default (#4108) 2017-02-06 11:31:01 +07:00
Nyall Dawson
c1b5da4726 Clear cached map renders if dependent layer is removed 2017-02-06 11:35:46 +10:00
Nyall Dawson
aa392dc23a Add method to retrieve dependent layers for map renderer cached images 2017-02-06 11:27:42 +10:00
Juergen E. Fischer
748acc6790 osgeo4w: packaging fixes 2017-02-06 01:30:59 +01:00
Nyall Dawson
737c92ddbb Fix logically dead code identified by Coverity 2017-02-06 10:16:44 +10:00
Nyall Dawson
a80cca0fb3 Fix indentation 2017-02-06 09:28:15 +10:00
Nyall Dawson
48e5c09b89 Fix a lot of memory leaks when fetching provider libraries 2017-02-06 08:51:35 +10:00
Nyall Dawson
4f7d9cddfe Merge pull request #4064 from jgrocha/delete-style-from-db-provider-postgis
Delete style from db provider postgis
2017-02-06 08:34:24 +10:00
Nyall Dawson
6ca2cc18ef Fix label font size unit from 2.x projects incorrectly restored (fix #16143) 2017-02-06 08:32:32 +10:00
Jorge Gustavo Rocha
20eea32952 Replaced QLibrary * with more safer QScopedPointer 2017-02-05 22:03:13 +00:00
Jorge Gustavo Rocha
8b36ad5b90 Updated Qt connections to the new style qgis/QGIS-Enhancement-Proposals#77
Changed isDeleteStyleFromDBSupported to isDeleteStyleFromDbSupported
2017-02-05 19:35:47 +00:00
Nyall Dawson
c5546b0357 Allow conversion of QgsPropertyTransfomers to expressions (when possible) 2017-02-05 20:19:12 +10:00
Nyall Dawson
ac55f396dd Fix reading project properties fails if any child element
has a tag named "properties"
2017-02-05 19:58:51 +10:00
Nyall Dawson
be9e93d671 Refactor internals of QgsPropertyOverrideButton 2017-02-05 15:16:48 +10:00
Nyall Dawson
54089ff710 Follow up 4a3871, fix broken data defined properties
(definitions are often accessed before a QgsSymboLayer/etc
is constructed)
2017-02-05 14:27:26 +10:00
Nyall Dawson
fa8189a53c Tweak property definitions for size type properties 2017-02-05 14:27:14 +10:00
Juergen E. Fischer
2c65a66587 revert more of ab0345 2017-02-04 21:22:48 +01:00
Juergen E. Fischer
e20bbd515c translation string fixes 2017-02-04 20:44:44 +01:00