4480 Commits

Author SHA1 Message Date
Matthias Kuhn
2145865a42 Metadata and modeller exposure support 2018-03-07 09:00:33 +11:00
Matthias Kuhn
ff7b831b9d Remove private implementations from python bindings 2018-03-07 09:00:33 +11:00
Matthias Kuhn
1fd74234b4 Add processing parameter type definitions 2018-03-07 09:00:33 +11:00
Alexander Bruy
44895084d9
Merge pull request #6525 from nyalldawson/segmentize
[FEATURE][processing] Add "segmentize" algorithms
2018-03-06 08:27:52 +02:00
Nyall Dawson
a30403dcbe Rename QgsProject::projectDirty to isDirtyChanged
Also show unsaved status in title bar even when project has
not been first saved
2018-03-06 11:57:51 +10:00
Nyall Dawson
5b8599e9bb Strip non-spatial and nullptrs from list when calling
QgsMapSettings::setLayers

Since neither can be rendered, we filter them from the list
of layers to be rendered in the map.
2018-03-06 07:50:26 +11:00
Blottiere Paul
7c3ab9f135
Merge pull request #6268 from pblottiere/dbmanager_stop
[FEATURE][needs-docs] dbmanager stop
2018-03-05 09:47:16 +00:00
Nyall Dawson
f2a6780973 Sipify and style 2018-03-05 19:15:06 +10:00
Nathan Woodrow
894c550641 Add projectDirty signal for QgsProject 2018-03-05 15:13:00 +10:00
Nyall Dawson
d79221f1a2 Docs++
[ci-skip]
2018-03-05 12:06:50 +11:00
Nyall Dawson
6bd7600aa3 Expose segmentization parameters to QgsGeometry::convertToStraightSegment 2018-03-04 12:10:27 +10:00
Matthias Kuhn
b84f014d9e
Merge pull request #6503 from m-kuhn/variousFixes
Various fixes
2018-03-02 17:02:38 -05:00
Matthias Kuhn
fc5073ddb0 Documentation fix 2018-03-02 12:44:02 -05:00
Blottiere Paul
e531052b28 Rename cancel() to cancelReload() and update doc accordingly 2018-03-02 10:41:07 +00:00
Blottiere Paul
1a5e03f667 Fix sip binding 2018-03-02 09:43:26 +00:00
Blottiere Paul
941aa0a650 Add a takeLayer method 2018-03-02 09:43:26 +00:00
Blottiere Paul
1ad02adfe0 Update documentation 2018-03-02 09:43:26 +00:00
Blottiere Paul
8873e9a020 Fix sip binding 2018-03-02 09:43:26 +00:00
Blottiere Paul
c2a2f33288 Rename postpone option in lazy 2018-03-02 09:43:26 +00:00
Blottiere Paul
f5a3e60b4e Update documentation 2018-03-02 09:43:26 +00:00
Blottiere Paul
957e92c847 Add async model for virtual layers 2018-03-02 09:43:26 +00:00
Matthias Kuhn
ecae50f1d3 Allow processing plugins to load their own parameters 2018-03-01 08:12:41 -05:00
Nyall Dawson
0acdcfadfd Fix crash when using the identify tool on a categorized render
with an unchecked category corresponding to the feature at the
clicked point

Also fix count of default category symbols
2018-03-01 16:49:29 +11:00
Denis Rouzaud
a483ef817a correctly use reference for context in QgsReadWriteContextCategoryPopper 2018-02-28 17:02:51 -09:00
Denis Rouzaud
b8ceda673c fix doxymentation 2018-02-28 15:00:11 -04:00
Denis Rouzaud
4e2eb0eb9c use a pointer otherwise Python is creating a copy 2018-02-28 13:43:11 -04:00
Denis Rouzaud
d171ca7ae4 offer enterCategory in Python bindings by adding a context manager 2018-02-28 13:43:11 -04:00
Denis Rouzaud
8582517966 avoid required call to leaveCategory by adding a RAII private class 2018-02-28 13:43:11 -04:00
Denis Rouzaud
89892926c0 add C++17 [[maybe_unused]] and [[no_discard]] 2018-02-28 13:43:10 -04:00
Denis Rouzaud
95ab3d05e0 doxymentation and better wording 2018-02-28 13:43:10 -04:00
Denis Rouzaud
b95f5c1a15 QgsReadWriteContext: add a category stack to know where the error message comes from
also change the QPair in favor of a struct for a better API
2018-02-28 13:43:10 -04:00
Denis Rouzaud
22008a5114 doxymentation 2018-02-28 13:43:10 -04:00
Denis Rouzaud
d421b857e5 QgsReadWriteContext can store message
app will show them in message bar when loading layers
2018-02-28 13:43:10 -04:00
Denis Rouzaud
47ab9b89e7 remove const for QgsReadWriteContext to allow bringing up error messages 2018-02-28 13:43:10 -04:00
Nyall Dawson
094cef7140 Sipify and astyle 2018-02-25 08:22:14 +10:00
Nyall Dawson
43cd62b62f [processing] Tweak api for QgsProcessingFeatureBasedAlgorithm
Instead of returning a single QgsFeature from processFeature, we now
return a list of features.

This allows feature based algorithms which return multiple features
per input feature, e.g. "explode" type algorithms which split a
single input feature into multiple output features.
2018-02-21 09:16:43 +11:00
Denis Rouzaud
713bfd3452 add Q_ENUM for QgsRasterProjector::Precision 2018-02-20 02:00:57 -09:00
Nyall Dawson
3ffbd84f5f Add a bounding box intersection test to QgsGeometry
We only previously had methods for exact intersections - this
commit adds a new QgsGeometry.boundingBoxIntersects() method
which can be used to test if just the bounding boxes of
geometries/rectangles intersect.

It's fast, and doesn't care about invalid geometries (unlike
the exact intersects checks)
2018-02-20 13:20:38 +10:00
Nyall Dawson
1da2da219a Fix build 2018-02-20 11:31:33 +10:00
Nyall Dawson
3d4f6f82bb Followup 0548f4, fixes to layer metadata and metadata widget
Address outstanding review requests so that this PR can be merged
2018-02-20 11:10:55 +10:00
mj10777
0548f4267e Added QgsLayerMetadata logic to QgsDataProvider. Added setMetadata in QgsVector/RasterLayer::setDataProvider. Corrections in QgsMetadataWidget with added get/setMetadata and hasChanged functions plus checking for set mLayer pointer before use. 2018-02-20 11:06:57 +10:00
Juergen E. Fischer
f14b729e3b fix some references to PROJ.4 2018-02-19 22:12:09 +01:00
Denis Rouzaud
1a1b197ced use Qgsettins::enumSettingValue where possible 2018-02-19 05:55:09 -09:00
Denis Rouzaud
9e2e99fe42 snapToCurrentLayer correctly handles Area type 2018-02-19 02:08:36 -09:00
Denis Rouzaud
965a4e87aa revert adding tolerance to QgsSnappingUtils::snapToCurrentLayer
since it already uses digitizing settings
2018-02-19 02:08:36 -09:00
Nyall Dawson
0e3af9c6a9 [layouts] Remove use of QStyleOptionGraphicsItem from QgsLayoutItem API
Turns out the useful methods in QStyleOptionGraphicsItem were deprecated
in Qt 5.10. To future protect our API this replaces all public
use of QStyleOptionGraphicsItem, so that we're free to revise
the internals of how we use QStyleOptionGraphicsItem without breaking
the public QGIS API.
2018-02-19 19:18:24 +11:00
Nyall Dawson
d830821b13 Remove QgsInterruptionChecker and replace with QgsFeedback use
There's little need for two classes with similar goals here.
2018-02-19 10:18:00 +10:00
Blottiere Paul
323e75c029
Merge pull request #5823 from pblottiere/bugfix_curvedstrings_z
[bugfix] Fixes #17576 and #17574 Add Z support and fixes crashes
2018-02-18 10:58:09 +00:00
Denis Rouzaud
f1123501d4 make QgsTolerance a Q_GADGET
to use Q_ENUM
2018-02-17 09:33:35 -09:00
Denis Rouzaud
2f385da9c8 [offset tool] handle rings and allow selecting by area
* correctly handles rings and parts
* allow to select polygon by area (not only edge)
2018-02-17 09:33:35 -09:00