38664 Commits

Author SHA1 Message Date
Martin Dobias
8ffd91ea90 Propagate path resolver through renderers, annotations, diagrams
This is necessary in order to be able to correctly translate between absolute and relative paths
deeper in the code - e.g. paths to SVG files used in marker or fill symbols.

Until now, relative paths were translated to absolute paths on the fly.
This is now changed - paths to files should be always absolute within QGIS objects - and paths
only get turned into relative when saving projects. When loading a project, relative paths
are translated to absolute paths immediately.

This should lower the overall confusion about relative/absolute paths within QGIS, and also
allow having different base directories for relative paths (e.g. QML or QPT files may use relative paths
to their directory - rather than to the project directory)
2017-05-13 18:02:19 +08:00
Alexander Bruy
6fe459de14 [processing] remove extra quotes when restoring batch process from file
(fix #16309)
2017-05-13 11:14:17 +03:00
lbartoletti
bc0c3a22b0 Add inclination method for QgsPointV2 (#4536) 2017-05-13 17:29:50 +10:00
Alexander Bruy
c620c7c306 [processing] stop algorithm execution if geometry/feature error occured
(fix #11986)
2017-05-13 09:45:37 +03:00
Mathieu Pellerin
75e95024f4 Deduplicate code in save as image / save as PDF 2017-05-13 11:01:28 +07:00
Alexander Bruy
e01b7ef60a [processing] take in account file extension when loading Processing
results (fix #16486)
2017-05-12 17:28:41 +03:00
Alessandro Pasotti
3f9c4e5fa7 Merge pull request #4535 from boundlessgeo/attributetable-fixes-16492
Attributetable fixes  crash #16492
2017-05-12 14:51:28 +02:00
Alessandro Pasotti
51347914b9 Only check for validity if attribute has changed 2017-05-12 12:50:51 +02:00
Matthias Kuhn
a0c6872f6c Fix crash when using expression bar on aliased field
Fix #16302
2017-05-12 12:41:39 +02:00
nirvn
cc7e960e70 Force vector output when saving map/canvas as PDF 2017-05-12 16:38:27 +07:00
Matthias Kuhn
f9842426dc Improve stability of QgsTask::waitForFinished test 2017-05-12 10:51:13 +02:00
Mathieu Pellerin
418084698d Display name of layers in need of rasterization when saving as PDF (#4539) 2017-05-12 15:21:10 +07:00
Juergen E. Fischer
ad5054bfd9 sip update qgsfeature 2017-05-12 09:53:47 +02:00
Alessandro Pasotti
1eaf03d3b4 Speed up the check for valid feature 2017-05-12 08:53:27 +02:00
Juergen E. Fischer
6e3e8ce4c8 Fix windows warning
...\qt5\include\qtcore\qcache.h(124): warning C4150: deletion of pointer to incomplete type 'QDomDocument'; no destructor called
.../server/qgsconfigcache.h(34): note: see declaration of 'QDomDocument'
...\qt5\include\qtcore\qcache.h(124): note: while compiling class template member function 'void QCache<QString,QDomDocument>::clear(void)'
2017-05-12 08:35:05 +02:00
Juergen E. Fischer
9ddd28dd81 Fix windows build
undefined error C2079: 'QMapNode<Key,T>::value' uses undefined class 'QgsGeometry'
2017-05-12 08:14:36 +02:00
Mathieu Pellerin
0e65077216 Small save as PDF cleanups 2017-05-12 11:53:53 +07:00
Nyall Dawson
50e972805b Merge pull request #4509 from nyalldawson/exporter
API Cleanups (and rename) for QgsVectorLayerImport, background export of layers when dropping to browser
2017-05-12 10:05:37 +10:00
Nyall Dawson
b6a5cc4204 Use QgsFeedback instead of QProgressDialog for QgsVectorLayerExporter::exportLayer
And add cancelation and progress reporting to background layer export
2017-05-12 08:03:23 +10:00
Nyall Dawson
446db28a79 Optimise QgsVectorLayerExporter::exportLayer when exporting only selected features 2017-05-12 08:03:23 +10:00
Nyall Dawson
75a5d5dda1 Remove unused skipAttributeCreation option in QgsVectorLayerExporter::exportLayer 2017-05-12 08:03:23 +10:00
Nyall Dawson
64b612f2a8 [FEATURE] Import layers to data providers in background
Flips the drag and drop import of layers to browser data sources
to use task manager, allowing these slow imports to occur
in the background.
2017-05-12 08:03:23 +10:00
Nyall Dawson
384369c3c4 Rename QgsVectorLayerImport to QgsVectorLayerExporter
Since the majority of users of this class will be exporting
an existing map layer to a data provider, the QgsVectorLayerImport
name is misleading and suggests that this class is designed
just to bring layers "into" QGIS.

Explicitly naming the class "Exporter" should help API users
discover this class.

Also cleanup API and improve docs
2017-05-12 08:02:51 +10:00
Nyall Dawson
9adc32292e Merge pull request #4515 from nyalldawson/render_crash
Fix crash when transform exception occurs during rendering
2017-05-12 08:00:45 +10:00
Alessandro Pasotti
db89929a8d [bugfix] Attribute table crashes QGIS when deleting selected
Fixes https://issues.qgis.org/issues/16492

Needs-backporting
2017-05-11 19:09:33 +02:00
Alessandro Pasotti
62bd07dd3b Added a comment to the test header 2017-05-11 18:28:51 +02:00
Alessandro Pasotti
074c41a157 Tiny typo fix - SIP part 2017-05-11 18:28:01 +02:00
Alessandro Pasotti
67fdd5e265 Tiny typo in a comment 2017-05-11 18:27:13 +02:00
Matthias Kuhn
354b667f14 Merge pull request #4526 from m-kuhn/featureCounter
Send feature counting to background task
2017-05-11 13:15:08 +02:00
Matthias Kuhn
eaabce28e9 Doxyfication 2017-05-11 12:42:26 +02:00
Matthias Kuhn
6dc7b57e65 Consify 2017-05-11 12:42:26 +02:00
Matthias Kuhn
2474498979 Allow specifying expression context for feature count 2017-05-11 12:42:26 +02:00
Matthias Kuhn
1fb55dbdee [travis] Optimize ccache 2017-05-11 12:42:26 +02:00
Matthias Kuhn
0cb82587f0 Localize feature count 2017-05-11 12:42:26 +02:00
Matthias Kuhn
95597e3bab Add tests for QgsTask::waitForFinished() 2017-05-11 12:42:26 +02:00
Matthias Kuhn
ed747edc94 Improve docs and python bindings for feature count 2017-05-11 12:42:26 +02:00
Matthias Kuhn
d452f7f21e Refresh feature count legend text automatically 2017-05-11 12:42:26 +02:00
Matthias Kuhn
52676774ba Sipify QgsTask[Manager] 2017-05-11 12:42:26 +02:00
Matthias Kuhn
3e88e8e9ac Fix feature counting 2017-05-11 12:42:26 +02:00
Matthias Kuhn
a6800e94b0 Fix division by 0 2017-05-11 12:42:26 +02:00
Matthias Kuhn
1f041884bb Add QgsTask::waitForFinished 2017-05-11 12:42:26 +02:00
Matthias Kuhn
05a713f444 Fix compatibility with older sip versions 2017-05-11 12:42:26 +02:00
Matthias Kuhn
964d9ac70a Send feature counting to background task 2017-05-11 12:42:26 +02:00
Matthias Kuhn
f264370130 Make fields() available in QgsVectorLayerFeatureSource 2017-05-11 12:42:25 +02:00
Denis Rouzaud
5888d22c07 fix sip bindings documentation 2017-05-11 12:00:06 +02:00
Denis Rouzaud
ad3fe26582 [doxygen] remove remaining 'note Added in XXX' in favor of '\since ...' 2017-05-11 10:53:22 +02:00
Alessandro Pasotti
8e60510e65 Merge pull request #4444 from boundlessgeo/sort_on_top_portTo3
[attributetable] Fix "Move selection to top" for 3.x regression fixes #15803
2017-05-11 10:46:28 +02:00
Juergen E. Fischer
f131792351 fix test font message 2017-05-11 08:45:08 +02:00
Luigi Pirelli
a924915b00 hide setting and value control in setSortOrder 2017-05-10 15:13:47 +02:00
Alexander Bruy
abc74b4262 [processing] don't apply -te and -te_srs if not requested (fix #16519) 2017-05-10 15:47:29 +03:00