17456 Commits

Author SHA1 Message Date
Alexander Bruy
585db6440f
Merge pull request #36618 from alexbruy/grass-tempfile
[processing] fix handling for stdout and file outputs in GRASS
2020-05-24 08:51:50 +03:00
Mathieu Pellerin
ee9dadbd64
[ui] Make temporal controller's forward, backward and pause
buttons behave as animation state toggle
2020-05-23 09:35:18 +07:00
Nyall Dawson
f676c821d9 Flag SAGA 'Merge Layers' algorithm as having known issues
Fixes #36375
2020-05-22 21:21:42 +10:00
Alexander Bruy
938dc618b1 update algorithms which use "ext" mechanism 2020-05-22 11:13:22 +03:00
Alexander Bruy
b5d323c583 [processing] fix handling for stdout and file outputs in GRASS
algorithms when temporary files are used
2020-05-22 10:30:07 +03:00
Alessandro Pasotti
5aea8ed2b7
Merge pull request #36620 from elpaso/bugfix-gh36583-change-attr-values
Bugfix gh36583 change attr values
2020-05-22 08:11:16 +02:00
Nyall Dawson
93648dd552 Add Python repr for QgsVertexId 2020-05-22 15:32:44 +10:00
Nyall Dawson
ef01c3c29d Dox 2020-05-22 08:40:51 +10:00
Nyall Dawson
3ebd09724b Add framework to allow for flexible interaction blocking with map canvas 2020-05-22 08:40:51 +10:00
Nyall Dawson
5cc0f0964b Fix resetting fields in Refactor Fields algorithm dialog 2020-05-22 07:14:14 +10:00
Nyall Dawson
169ca650fe [processing] Fix exception when changing layer in Refactor Fields algorithm
Fixes #36582
2020-05-22 07:14:14 +10:00
Alessandro Pasotti
25d3052fa0 Sipify 2020-05-21 15:50:01 +02:00
nirvn
de799721aa Map decoration cleanup:
- code simplification (moving displayName() to the core class
prevents us having to create lists of DecorationItem alongside
lists of MapDecoration
- Proper translation support for decoration names
2020-05-21 09:05:28 +10:00
vcloarec
267af1e7fb temporal match methods 2020-05-21 05:54:24 +10:00
Nyall Dawson
92ebf7bc8d [processing] Fix running script algorithm from editor dialog
We have to keep a local reference to the dialog, otherwise sip suddenly
"forgets" about the python subclass and treats the dialog as just
the parent c++ class. Really weird, thanks sip.

Fixes #36436
2020-05-20 18:21:02 +10:00
Nyall Dawson
ef97e8c6fc [symbology] When rendering features, split the geometry fetching
and preparation stage from the symbol layer rendering stage, and
ensure that QgsSymbolLayer::startFeatureRender and ::stopFeatureRender
is correctly called in the right sequence when rendering multi-layer
symbols

This fixes issues with symbol layers which rely on startFeatureRender
and stopFeatureRender to correctly render, e.g. the Random Marker Fill
symbol layer.

Before this fix, the logic looked like:

- for every symbol layer in the symbol, call startFeatureRender
- for each part in polygon, prepare the part geometry and then render each symbol layer
- for every symbol layer in the symbol, call stopFeatureRender

The issue with this approach is that symbol layers which defer
rendering to the stopFeatureRender stage are always rendered
after ALL other symbol layers in the symbol, regardless of the actual
order of the symbol layers. Ultimately this causes Random Marker Fill
layers to always render on the top of symbols.

The new logic is:
- for each part in polygon, prepare the geometry and store the result
- for each symbol layer in the symbol:
   - call startFeatureRender
   - render the layer using each of the previously prepared parts
   - call stopFeatureRender

This results in correct stacking of the random marker fill in multi
layer symbols, because the stopFeatureRender call is correctly called
before the next layer's startFeatureRender and renderPolygon calls

Also, use QVector instead of QList for rings for improved efficiency
2020-05-20 17:09:48 +10:00
Harrissou Sant-anna
ea4f2bbfb9 Making lists in PyQGIS doc look better
and fix some wording
2020-05-20 16:39:42 +10:00
Nyall Dawson
180ec5389b Sipify 2020-05-20 12:40:40 +10:00
Denis Rouzaud
cc19fa1d13
Merge pull request #36421 from 3nids/basemap_path
Registry for localized data paths
2020-05-19 21:27:51 +02:00
uclaros
24cda403da why u no sipify? 2020-05-20 05:01:20 +10:00
Nyall Dawson
0acb7fcc29 Add API to skip identification of CRS created from proj strings
The identification can be time consuming, so in the rare cases that
we are SURE that the definition doesn't correspond to a known or
user CRS, we can optionally skip it to save some time.
2020-05-20 04:55:46 +10:00
Nyall Dawson
4744696d5a Correctly update temporal properties widgets after loading styles 2020-05-20 03:47:59 +10:00
Nyall Dawson
79f8fd9892 Move reponsibility for saving/restoring temporal properties
to QgsMapLayer::read/writeCommonStyle

Correctly stores these settings in QML files and when duplicating
layers

Fixes #36531, fixes #36530
2020-05-20 03:47:59 +10:00
Denis Rouzaud
1affb0c2d3 remove private constructor 2020-05-19 14:25:01 +02:00
Denis Rouzaud
5d892e78fc remove destructor 2020-05-19 14:21:56 +02:00
Denis Rouzaud
b67f6bf2d9 rename full/relative to global/localized 2020-05-19 14:21:56 +02:00
Denis Rouzaud
360827ade0 rename QgsBasemapPathRegistry to QgsLocalizedDataPathRegistry 2020-05-19 14:21:55 +02:00
Denis Rouzaud
74c2ccc319 address review 2020-05-19 14:21:55 +02:00
Denis Rouzaud
75a991c09b add the registry to QgsApplication 2020-05-19 14:21:03 +02:00
Denis Rouzaud
b1920bb287 introduce QgsBasemapPathRegistry to hold a list of paths where basemaps can be located 2020-05-19 14:20:04 +02:00
Nyall Dawson
82c298a703 Show startup profile timings in developer/debugging tools panel
Instead of hiding this information on the console, let's expose it
to users. QGIS startup times have been an ongoing issue for a number
of years, so let's help provide users with some tools to help
track down what's causing these (*hint* it's probably a plugin *hint*)
2020-05-19 04:35:34 +10:00
Nyall Dawson
c6690c2ee8 Create runtime profiles for various startup/provider initialisation
tasks in processing

Attempting to diagnose occasional very slow QGIS startup times
2020-05-19 04:35:34 +10:00
Nyall Dawson
a913a6aa5a Create RAII QgsScopedRuntimeProfile class and Python context manager
to ease logging of runtime profiles.

Now it's possible to do:

    with QgsRuntimeProfiler.profile('My operation'):
      # do something

to automatically handle everything required to log the operation runtime
2020-05-19 04:35:34 +10:00
Nyall Dawson
1b4dd484bf Improve API for QgsRuntimeProfiler
Make it easier to nest profiled calls by removing the concept of groups,
and instead allow any profiled operation to have log child operation
runtimes as well as its overall runtime.
2020-05-19 04:35:34 +10:00
Nyall Dawson
6e7113024f [layouts][api] Expose to public API the option to create separate
files for each logical layer in a layout

The backend for this was previously used only when creating a GeoPDF
export, where we create an individual PDF per layout logical layer
which are then composited by GDAL.

By publicly exposing this functionality via the QgsLayoutExporter API
we allow for plugins which can export layouts to seperate logical
PDF files, allowing for other (non-GDAL) tools to be used to later
composite the layers (e.g. Adobe Illustrator (which stupidly cannot
handle multi-layer single PDF files!))

Sponsored by SMEC/SJ
2020-05-19 04:33:48 +10:00
Alexander Bruy
0d54cac866
Merge pull request #36510 from sshuair/master
fix processing tool box `BarPlot.py` translate text spell error
2020-05-18 13:43:23 +03:00
nirvn
de918fde53 Fix tests 2020-05-18 14:34:45 +07:00
sshuair
b32d68ef34
fix translate text spell error 2020-05-18 13:55:44 +08:00
Nyall Dawson
2258e24f8c Fix dox test 2020-05-18 11:42:25 +07:00
Nyall Dawson
09fda8d285 Tweak API for QgsTemporalUtils::exportAnimation
Make it a bit more future-proof
2020-05-18 11:42:25 +07:00
gacarrillor
8a7feeddbb [processing] Destroy widgets from an algorithm dialog as soon as it is rejected 2020-05-18 09:28:55 +10:00
Ivan Ivanov
576c2f3ff8 Fix docs and other code review fixes 2020-05-18 09:24:55 +10:00
Ivan Ivanov
8ff229e330 Add the filename to the "Select Layers to Add.." 2020-05-18 09:24:55 +10:00
Martin Dobias
68bbf46ebb Add QgsRasterDataProvider::transformCoordinates()
This is useful when client needs to find out image space coordinates of a point
in map layer coordinates or vice versa. For warped VRT rasters this can't be
simply done by using geotransform matrix because the transform may be more complex.

This may be also useful functionality for identify tool to show source raster
image coordinates.
2020-05-18 09:20:32 +10:00
Juergen E. Fischer
b1edb5e70c test_defwindowtitle.sh: also check Dialog 2020-05-16 20:55:59 +02:00
Matthias Kuhn
bf485ec59a
Merge pull request #36427 from signedav/ressource_expression
[Server] Expression override for online resource in service capabilities
2020-05-15 15:51:00 +02:00
Matthias Kuhn
0df50ca979
Merge pull request #36372 from alexbruy/processing-cpp
port more Processing algorithms to C++
2020-05-15 11:21:12 +02:00
Denis Rouzaud
8866021fe1
[layout] add missing interface to set atlas feature (#36432) 2020-05-15 11:09:25 +02:00
Matthias Kuhn
0617e52f19
Merge pull request #35875 from olivierdalang/tracing_curves_prototype
[feature] Curved geometries support for trace tool
2020-05-15 08:57:06 +02:00
nirvn
ba5b4166da [FEATURE][temporal] Add off and fixed range modes to temporal navigation 2020-05-15 13:47:02 +07:00