2542 Commits

Author SHA1 Message Date
nirvn
da23cb6ee0 [canvas] Insure a refreshed canvas due to temporal range changes reflects the last provided range 2020-05-10 14:02:11 +07:00
Martin Dobias
49f832a24d Added widget wrapper, added two separate algorithms (xyz + mbtiles) 2020-05-08 12:55:08 +02:00
Nyall Dawson
d98defec1a [feature] Add basic temporal handling support for vector layers
This exposes some basic temporal capabilities for vector layers:
- static time range for layer (to match raster layer possibilities), this
sets a single static time range which applies to the whole layer. ALL
features from the layer will be shown whenever the canvas time
overlaps the layer time range
- "Single field with datetime": Allows selection of a single date
or datetime field from the layer. Features will be shown whenever
this field value is within the canvas time range
- "Separate Fields for Start and End Date/Time": Allows selection
of start and end date/datetime fields from the layer. Features will
be shown whenever the time interval calculated from these fields
overlaps the canvas time range

Some known limitations/inefficiencies:
- currently only date/datetime fields can be used. This was done
to simplify the format handling and avoid the need to worry about
string fields with different datetime formats. In future we should
allow selection of string fields and allow users to enter a custom
datetime format string
- unlike the Time Manager plugin approach, the approach taken here
is to rely completely on QGIS expressions and feature requests to
do the filtering (Time Manager uses layer filter strings and attempts
to set a native SQL filter syntax so that filtering is done on the
backend). This is intentional, because it provides a unified filter
approach regardless of the provider used (i.e. we don't need to worry
about the different SQL syntaxes used natively by the different
providers). The beauty of feature request expression compilation
**should** mean that the QGIS expressions are magically turned into
native backend queries, BUUUUUUUUUUUT... because we lack QGIS expression
support for date time literals, we currently rely on the "to_datetime"
expression function and coerce everything through strings. None of
the expression compilers handle this function, so currently ALL
filtering is done on the QGIS side. We need to add functions for
optimised datetime literal creation, and then ensure that the different
compilers correctly map these literals across to the backend
filter syntax to allow all the filtering work to be done on the database
side...

So currently, performance is much worse with large layers compared
to Time Manager. But, the advantage is that we can use the native
temporal framework and have vector layers animated alongside mesh
and raster layers!
2020-05-08 11:46:46 +10:00
Alexander Bruy
df4bf42ae5 add ability to specity setting additional Options flags for QFileDialog
in the QgsFileWidget

For example in some cases hidding filter details is useful to prevent
expanding combobox popup to the whole screen when long filter string is
used.
2020-05-08 09:44:45 +10:00
Matthias Kuhn
10713ddfa0
Merge pull request #36240 from troopa81/fix_snaptogridcanvasitem
Fix SIP QgsSnapToGridCanvasItem class declaration
2020-05-07 09:35:54 +02:00
Denis Rouzaud
37efb4d598
Merge pull request #35382 from 3nids/dnd-across-qgis-instances
[FEATURE] allow to drag'n'drop layer across several QGIS instances
2020-05-06 16:04:07 +02:00
Julien Cabieces
985f86f1d7 Fixes #36033 : add sip specific class declaration to QgsSnapToGridCanvasItem 2020-05-06 15:47:48 +02:00
Denis Rouzaud
7e0c438b9c
enhance sorting capabilities in attribute table list/form view (#36199) 2020-05-06 06:45:22 +02:00
Denis Rouzaud
c22c73dde2
allow fetching all features in QgsFeaturePickerWidget (#36193)
and more documentation
2020-05-05 11:08:56 +02:00
Denis Rouzaud
01f766255b layer tree model can emit messages which will be shown in the message bar 2020-05-05 09:25:31 +02:00
Germán Carrillo
76a8f8270a Expose addTabifiedDockWidget through QgisInterface 2020-05-03 15:34:46 +10:00
Denis Rouzaud
dd560f49b3
move the logic to save line edit state to QgsLineEdit (#36117) 2020-05-01 14:17:58 +02:00
Denis Rouzaud
3fd45ecaff add browsing buttons 2020-04-30 09:41:05 +02:00
Denis Rouzaud
0119bb52e1 add setting for fetch limit 2020-04-29 15:54:16 +02:00
Denis Rouzaud
3090824cbf add a property to determine if geometry is fetched 2020-04-29 15:54:15 +02:00
Denis Rouzaud
ae5988cbb1 do not use template since they cannot be mixed with Q_OBJECT 2020-04-29 15:54:15 +02:00
Denis Rouzaud
82da0fd962 rename QgsFeatureChooser to QgsFeaturePicker 2020-04-29 15:54:15 +02:00
Denis Rouzaud
3cd237eca7 more work 2020-04-29 15:54:15 +02:00
Denis Rouzaud
97dafe1fe9 move the expression preview to a dedicated class 2020-04-29 15:54:15 +02:00
Alexander Bruy
81911c1afc remove server search URL from settings
remove server search tab from OWS dialog
2020-04-25 04:52:01 +10:00
Nyall Dawson
8a0e007ba5 [FEATURE] Support legend patch shapes in style manager databases
And clean up a lot of duplicate code which makes adding new types
to QgsStyle painful
2020-04-22 12:43:01 +10:00
Nyall Dawson
5f834d66df Spelling 2020-04-21 10:40:50 +10:00
Nyall Dawson
ddbcb1f478 [FEATURE][layouts] Allow configuring legend patch shapes by
double-clicking on legend items

Allows users to set custom legend patch shapes for items by
entering a WKT string representing the patch geometry
2020-04-21 10:40:50 +10:00
uclaros
86ac754617 Added field name autocomplete to the query builder 2020-04-20 09:27:33 +10:00
Alexander Bruy
e9dd602da6
Merge pull request #35815 from alexbruy/ds-vectortiles
Add vector tiles to Datasource manager dialog and Layers menu
2020-04-17 11:59:39 +03:00
Nyall Dawson
226bc42dd8 [FEATURE][layouts] Support pasting pictures directly into layouts
Embeds the pasted picture into the layout.

Note that Qt image clipboard handling seems a bit... crap. So success
may vary.
2020-04-17 13:48:05 +10:00
olivierdalang
915b67ddb2
[processing modeler] Show arrowheads for parent/child relations 2020-04-17 08:49:46 +10:00
Alexander Bruy
05370ca842 [feature] Add Vector Tile Layer action in "Layers" menu 2020-04-16 16:06:38 +03:00
Alexander Bruy
b1ed51a71d [feature] vector tile connections import/export 2020-04-16 14:54:24 +03:00
Alexander Bruy
39e397ebd0 [feature] api for adding vector tile layers
This is code-only, not visible to users change and prerequisite for
exposing vector tile layer in the Data Source manager
2020-04-16 13:26:40 +03:00
Nyall Dawson
05bc716827 Move model child algorithm dependencies selection widget to c++, make inline panel 2020-04-16 16:02:53 +10:00
Alexander Bruy
2770c4990e
Merge pull request #35790 from alexbruy/connections-fixes
import/export for ArcGIS Map and FeatureServer connections (fix #27485)
2020-04-15 20:20:23 +03:00
Martin Dobias
59c1ac348d Add support for identify tool for vector tile layers
Also:
- enables saving/loading of layer definition files (.qlr) with vector tile layers.
- makes fields of vector tile layers sorted so they are easier to navigate
2020-04-15 13:38:19 +02:00
Alexander Bruy
99a930ca51 [feature] add API to import/export ArcGIS MapServer and FeatureServer
connections. This is API-only change not visible for users.
2020-04-15 12:54:58 +03:00
Alexander Bruy
76872fb5c9
Merge pull request #35764 from alexbruy/ds-manager
Add XYZ tiles to Datasource manager dialog and Layers menu
2020-04-15 11:26:24 +03:00
Alexander Bruy
261553dd28 fix docs 2020-04-15 08:33:55 +03:00
Alexander Bruy
baf7729ca0 fix Travis 2020-04-14 18:34:03 +03:00
Alexander Bruy
079dae3529 [feature] add "Add XYZ Layer" button to Layers menu 2020-04-14 13:54:39 +03:00
Nyall Dawson
0558d64198 Add mechanism to show warning messages in modeler designer 2020-04-14 20:27:21 +10:00
Vincent Cloarec
17a95ef0a5
[MESH][FEATURE] update to MDAL 0.5.91 Multi meshes in one file (#35669)
Allow load of multiple (sub-)meshes from a single file. If file contains multiple meshes (e.g. UGRID file), user needs to select the meshes to load from the dialog.
2020-04-14 08:17:15 +02:00
Nyall Dawson
d24ae53e0f Tweak model component clipboard logic -- only copy comments and outputs
connected to algorithms when they have been explicitly selected by the user
2020-04-14 14:36:02 +10:00
Nyall Dawson
47f96e2466 [FEATURE][processing] Allow copying/cut/paste of model components
This commit allows users to copy and paste model components, both
within the same model and between different models
2020-04-14 14:36:02 +10:00
Nyall Dawson
0396162d1f [processing] De-emphasise SAGA results when searching in toolbox
This change "dims" the results from the SAGA provider when a search
is made in the toolbox, to visually push users towards picking alternative
algorithms instead.

The Processing implementation of SAGA algorithms are a constant source
of critical bugs for users, causing incorrect analysis results. There's
zero community interest in actively maintaining this provider, so we
need to take steps to push users to stop picking these algorithms
wherever alternative (QGIS/GRASS/GDAL based) equivalents exist.

And for 4.0, seriously re-consider dropping this provider from the
out of the box install. We are causing more harm then good by offering
it to users.
2020-04-13 17:12:14 +10:00
Nyall Dawson
a3c7a05004 Add methods to QgsFieldMappingModel to retrieve/set QgsProperty based definitions 2020-04-07 17:05:44 +10:00
Nyall Dawson
6326ac6b5e Silly sip nonsense 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
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