17250 Commits

Author SHA1 Message Date
obrix
f56e0f51c1 Various small reworks :
* better documentation
* translation on non translated string
* Grey out column min and max of individual layer snapping settings when snapping limit on scale is disabled.
  Force the refresh when rowChanged is called even if the individual settings are the same to enable/disable immediately the columns when the snapping limit on scale button is pushed.
2020-04-07 09:27:08 +02:00
obrix
30a52ac55e Fix PyQgsLayerDependencies test and add some doc. 2020-04-07 09:27:08 +02:00
obrix
6b9fb087c2 Fix style. 2020-04-07 09:27:08 +02:00
obrix
2346718ac7 Enable snapping whatever the scale when limit to scale is off. Also fix style. 2020-04-07 09:27:08 +02:00
obrix
7b4be2b7fa Remove boolean limitToScaleRange, default value is -1.0. Negative values disable the limits. 2020-04-07 09:27:08 +02:00
obrix
8ec744ad11 Add 3 new parameters per layers to the advance snapping settings :
- LimitToScaleRange : Allows to enable snapping only when current scale on the canvas is in a specified range. This range is controled by the two parameters scale min and scale max.
- MinScale : Minimum scale in which the snapping is enabled
- MaxScale : Maximum scale in which the snapping is enabled

When LimitToScaleRange is set to true, snapping is disabled if the current scale out of [MinScale, MaxScale].
When LimitToScaleRange is set to false, the behavior remain unchanged and snapping is enabled whatever the scale.

This allows to limit the costly cache refresh for some heavy layers when panning said layer at a level where the snapping is not useful.
2020-04-07 09:27:08 +02:00
Nyall Dawson
a3c7a05004 Add methods to QgsFieldMappingModel to retrieve/set QgsProperty based definitions 2020-04-07 17:05:44 +10:00
Nyall Dawson
8050612363 Add a __repr__ method for QgsProperty 2020-04-07 17:05:44 +10:00
Nyall Dawson
6326ac6b5e Silly sip nonsense 2020-04-07 17:05:44 +10:00
Nyall Dawson
bb9b25f28b Add API to flag that a sink supports appending features to existing layers 2020-04-07 17:05:44 +10:00
Nyall Dawson
b2ca789ba4 Implement sinkProperties for QgsProcessingFeatureBasedAlgorithm subclasses 2020-04-07 17:05:44 +10:00
Nyall Dawson
2d8da255a2 [processing] Add API to determine in advance the properties of vector
outputs (sinks and vector layers), such as output fields, wkbtypes and
crs.
2020-04-07 17:05:44 +10:00
Nyall Dawson
bf6f017466 [processing] Hookup backend API to allow sinks to append to an existing layer
(respecting the sink mapping definition)
2020-04-07 17:05:44 +10:00
Nyall Dawson
0d7773a0ee [processing] Allow setting the optional remapping definition for QgsProcessingOutputLayerDefinition
Provides a (currently non-functional) API for specifying optional remapping parameters
for vector outputs.
2020-04-07 17:05:44 +10:00
Nyall Dawson
8c73c6165e Allow storage of QgsRemappingSinkDefinition in variants 2020-04-07 17:05:44 +10:00
Nyall Dawson
93f714d233 [FEATURE][API] Add new QgsFeatureSink subclass QgsRemappingProxyFeatureSink
This sink allows for transformation of incoming features to match the
requirements of storing in an existing destination layer, e.g. by reprojecting
the features to the destination's CRS, by coercing geometries to the
format required by the destination sink, and by mapping field values from
the source to the destination.
2020-04-07 17:05:44 +10:00
Nyall Dawson
78c86ef6ca Move geometry handling guts of QgsVectorLayerUtils::makeFeaturesCompatible
to a new method in QgsGeometry
2020-04-07 17:05:44 +10:00
Nyall Dawson
c987e500bc Code shuffle to move QgsProxyFeatureSink to its own file 2020-04-07 17:05:44 +10:00
Nyall Dawson
bc1c58b810 Spelling 2020-04-07 09:18:49 +10:00
Nyall Dawson
878ac9d4f7 Provide custom project open handlers a method to create thumbnail images
for the welcome screen
2020-04-07 09:18:49 +10:00
Nyall Dawson
27164156e1 [FEATURE][API] Allow plugins to register custom "Project Open" handlers
These allow plugins to extend the "Open Project" dialog by adding in support
for new file filters, which appear in the formats drop down list alongside
the existing "QGS Projects" entry.

Custom project open handlers then get first chance at loading project files.

This allows plugins to extend QGIS support by adding integrated support for
opening projects from non QGS/QGZ formats, e.g. allowing users to open
ArcGIS MXD documents or MapInfo WOR Workspaces direct from the project open
dialog.

These non-native projects are also added to the recent projects list and
welcome screen, giving them a truly first-class experience within QGIS.

Sponsored by SLYR
2020-04-07 09:18:49 +10:00
Stephen Knox
1730815dca Fix sip __hash__ for qgsactionscope
to allow use in actionScopeRegistry. Fixes #29225
2020-04-06 21:24:47 +01:00
Alessandro Pasotti
198b797586 PG raster temporal: cleanup after rebase conflicts 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
1231aa03db Added fields accessor to raster data provider 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
59b0dc13ac Add dataComment to data provider base class 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
7e7cb41b80 Const correct provider temporal capabilities 2020-04-06 10:50:04 +02:00
Nyall Dawson
de59f5392a [layouts][FEATURE] Allow marker items to sync rotation with maps
This allows creation of north arrows from marker symbols, exposing
the same options as exist for picture items acting as north arrows.

Sponsored by SLYR
2020-04-06 14:04:20 +10:00
Nyall Dawson
0384ef03e6 Refactor picture north arrow handling to extract logic to seperate class 2020-04-06 14:04:20 +10:00
Nyall Dawson
872b4640c1 Revert "fix script path on windows"
This reverts commit aa1c3e11e84f77584e7cd835d896379aad81b284.

The change breaks a test
2020-04-06 10:42:43 +10:00
Juergen E. Fischer
aa1c3e11e8 fix script path on windows 2020-04-05 18:26:33 +02:00
Martin Dobias
c7380612cd Correct SIP fix + add src/gui/vectortile to doxygen 2020-04-05 12:04:34 +02:00
Martin Dobias
a4a61e039c Added missing references to sip files 2020-04-05 12:04:34 +02:00
Nyall Dawson
632448c447 [FEATURE][layouts] New item type for marker symbols
Allows marker symbols to be placed directly on layouts, eg.
for manually placing markers over a map item or for creation
of advanced custom legends
2020-04-05 14:23:22 +10:00
uclaros
b48a5760be more missed spelling 2020-04-05 08:05:28 +10:00
uclaros
6aca7b6964 Added move to bottom in layertreeview context menu 2020-04-05 08:05:28 +10:00
Alexander Bruy
997cebab1a [processing] enable multiple types selection for vector, feature source
and map layer parameters
2020-04-05 05:23:29 +10:00
Alexander Bruy
076a0268ab cleanup imports 2020-04-05 05:23:29 +10:00
Alexander Bruy
91229e366a [processing] port map layer parameter definition widget to C++ 2020-04-05 05:23:29 +10:00
Alexander Bruy
abe12c4cd4 [processing] port distance parameter definition widget to C++ 2020-04-05 05:23:29 +10:00
Alexander Bruy
ffd21f3ceb [processing] port scale parameter definition widget to C++ 2020-04-05 05:23:29 +10:00
Alexander Bruy
bae6d214d8 [processing] port number parameter definition widget to C++ 2020-04-05 05:23:29 +10:00
Alexander Bruy
7330ca8e37 [processing] port vector layer and feature source parameter definition
widgets to C++
2020-04-05 05:23:29 +10:00
Alexander Bruy
6f84358a9f [processing] port multiple layers parameter defintion widget to C++ 2020-04-05 05:23:29 +10:00
Alexander Bruy
ebd0a72025 [processing] port field parameter definition widget to C++, expose
defaultToAll option to modeler parameter definition dialog
2020-04-05 05:23:29 +10:00
Alexander Bruy
a2ed502cf5 [processing] port band parameter definition widget to C++, expose
option to define multiple bands parameter in modeler parameter defintion
dialog
2020-04-05 05:23:29 +10:00
Nyall Dawson
d69519a91e Move parameter retrieval logic from dialog to ParametersPanel
This is cleaner, because the panel owns all the wrappers required
to evaluate the parameter values
2020-04-04 17:58:55 +10:00
Nyall Dawson
a80bdc47e5 [processing] Add API and interfaces so that widget wrappers can retrieve the
current set of parameters for other parameters when required
2020-04-04 17:58:55 +10:00
Nyall Dawson
9d1b55b55a QgsFieldMappingWidget is a QgsPanelWidget 2020-04-04 13:22:44 +10:00
Ismail Sunni
562b11fd9b
Filter out field with readonly in the quick field calculator.
Fix #34331
2020-04-04 10:11:23 +10:00
Nyall Dawson
fa0a6c37fb Fix field name loading following activity on master 2020-04-03 21:21:14 +10:00