61963 Commits

Author SHA1 Message Date
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
11b67c2691 Implement sinkProperties for buffer algorithm 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
66959cd2ec Fix tests 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
28502a752b Add support for QgsRemappingSinkDefinition to QgsXmlUtils 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
vcloarec
70bbfcada5 adapt test temporal navigation object 2020-04-07 14:45:20 +10:00
vcloarec
cf9e4af161 update temporal extent 2020-04-07 14:45:20 +10:00
Håvard Tveite
bf0aafc634
Fixed variable name and modified progress reporting 2020-04-07 12:52:24 +10:00
Julien Monticolo
df0f97524f
Expression builder : add layer_property(...,'distance_units')
To complete the existing function layer_property(...), this change add a new argument 'distance_units' for return a string with the layer distance units (see QgsUnitTypes::DistanceUnit)

This function can be used for display units for labels, in layouts or for access to more layer properties in the expression builder for algorithms.
2020-04-07 09:20:38 +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
8fa6338bf3
Merge pull request #35511 from elpaso/pgraster-temporal
Postgres raster temporal API support
2020-04-06 21:54:22 +02:00
Mathieu Pellerin
1383cdef46 [ui] Set a sensible minimum height to saved symbol list widget 2020-04-06 16:44:40 +07:00
Mathieu Pellerin
1a3a3974a2 [ui] Disable advanced config toolbar button when snapping disabled 2020-04-06 16:43:30 +07:00
Alessandro Pasotti
0f2a70a39a PG raster: simplify tests data 2020-04-06 10:51:09 +02:00
Alessandro Pasotti
dccfe5e332 Small typo in a comment 2020-04-06 10:51:09 +02:00
Alessandro Pasotti
1d4b909769 PG raster: fix raster size for untiled no metadata
Fix unreported issue with a wierd raster that has
uncomplete metadata:

- wrong size 1px rounding error
- nodata values were not cleared after dropping out from
  the fast track
2020-04-06 10:51:09 +02:00
Alessandro Pasotti
ef1497faaa Spellcheck ignore provider sql files 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
ce85eb1bc1 PG raster: need for speed for untiled rasters 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
198b797586 PG raster temporal: cleanup after rebase conflicts 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
0cafc1ce83 PG raster: optimize slow query 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
818c579499 Micro optimizations 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
f3a76d9998 PG raster temporal, partly revert expose default as filter 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
3f8c28b684 Fix temporal range slices (exclude end) 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
6cfa1446a4 More PG raster temporal support
- expose to GUI
- allows to set a default datetime
- tests
- fix metadata retrieval for multiband filtered rasters
2020-04-06 10:51:08 +02:00
Alessandro Pasotti
a3f3e0d839 Added some consts 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
2ed9104009 Synchonize provider data source URI
this is a bugfix (unreported?)
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
3a5ad9a5c1 Add override after dataComment move 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
cd32d11b76 Fix WMS-T temporal data source URI 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
98ef2fe601 Const correctness 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
a5d818cf8d Fix datasource URI for WMS-T 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
651a25a39a Fix encoded URI 2020-04-06 10:50:04 +02:00
Alessandro Pasotti
8738bfc0e8 PG raster: temporal support 2020-04-06 10:50:04 +02:00
Alessandro Pasotti
7e7cb41b80 Const correct provider temporal capabilities 2020-04-06 10:50:04 +02:00
Mathieu Pellerin
db2aa56b37 [vector] Remove problematic topological editing related assert when adding features 2020-04-06 14:52:26 +07:00
Mathieu Pellerin
b9cd835ead [vector] Fix bogus assert when adding polygons with topological edit toggled on 2020-04-06 13:24:55 +07:00
Vincent Cloarec
16283f60a1
allow resampling method for default mesh vector dataset (#35605) 2020-04-06 08:17:02 +02:00
Mathieu Pellerin
3bb03f635d [temporal] Never assume a layer has temporal properties, it crashes 2020-04-06 13:10:54 +07:00
Mathieu Pellerin
827f0a1add [themes] Fix visual disabled state of checked tool buttons 2020-04-06 12:32:58 +07:00