Alessandro Pasotti
e702bd4a11
Keep native nodiscard
2018-04-03 14:41:12 +02:00
Alessandro Pasotti
ecfbe8a141
Fix android build with osgeo4a
2018-03-27 14:24:11 +02:00
nirvn
10044fb1dd
[raster] skip non finite values when computing band min/max statistics
2018-03-16 17:07:01 +07:00
Werner Macho
975117a2b6
Merge pull request #6621 from Gustry/typo
...
fix typo altitide -> altitude
2018-03-16 10:45:00 +01:00
Etienne Trimaille
c0f5d22fcd
fix typo altitide -> altitude
2018-03-16 10:37:04 +01:00
Nyall Dawson
9e01a04a49
Fix crash in Select by Radius
...
If a radius value is entered immediately after clicking with the
tool (before any mouse movement), it would trigger a crash
2018-03-16 16:11:09 +11:00
Nyall Dawson
dc0da6f349
Fix some inconsistent capitalization
2018-03-16 15:04:25 +10:00
Nyall Dawson
7a28181e7f
Skip some attributes in import photos test
...
These absolute paths cannot be tested in processing algorithm tests
2018-03-16 15:08:29 +11:00
Nyall Dawson
fa2c5aebb7
[FEATURE][processing] Import geotagged photos algorithm
...
This implements a new "import geotagged photos" algorithm
for processing. It allows selection of a folder which it
will scan for jpg files which have been geotagged and
creates a PointZ layer with the result, with attributes
for photo path, altitude, direction and timestamp.
Optionally the scan can be recursive and you can create
an optional table of photos which could not be read
or which were missing geotags.
The algorithm automatically sets the output table to
use an external resource widget to display the linked
photos in the attribute form.
[ALGCHANGE]
2018-03-16 15:08:29 +11:00
Nyall Dawson
87e8432644
[processing] Fix Points to Paths terminates when an order by
...
field is empty
2018-03-16 14:30:30 +11:00
Nyall Dawson
615823653c
Modernize connection pool code
2018-03-16 12:33:34 +11:00
Nyall Dawson
f3b5838f5e
[ogr] Fix ref/unref mismatch when loading OGR layers
...
Causes an extra connection reference which is never removed,
blocking ogr dataset closing.
Fixes #18420 , probably others
2018-03-16 12:33:34 +11:00
Nyall Dawson
bf12404659
Revert 5b9be7a
...
Since the attribute table dialog object name is set to match
the layer/featureid combo, this commit was causing the attribute
form dialog to remember its position and size for each
feature/layer combo individually.
That's NOT what we want!
Fixes #18426
2018-03-16 12:01:46 +11:00
Nyall Dawson
8658da39e3
[postgres] Add a timeout for postgres connections
...
Defaults to 30 seconds, but configurable via advanced settings/
global_settings ini
2018-03-16 10:57:52 +11:00
Nyall Dawson
2526a6cecd
Show a busy cursor when testing a postgres connection
2018-03-16 10:57:52 +11:00
Nyall Dawson
f694f75f5d
Add QgsTemporaryCursorOverride class
...
Temporarily sets a QApplication override cursor for the lifetime
of the object, then removes it
Makes it easier to ensure that the override is always removed
regardless of the exit path taken.
2018-03-16 10:57:52 +11:00
Juergen E. Fischer
f05e9c3cac
Fix windows build and warnings
2018-03-15 23:12:57 +01:00
Shiva Reddy
536cc9cfbe
Update writeOut to include isatty ( #6602 )
...
Added these lines so that QGIS 3 python console works in window
2018-03-16 08:20:14 +11:00
Nyall Dawson
435c14d1ee
Unlikely attempt to stop flaky rule based renderer test crashing out
2018-03-16 08:18:36 +11:00
Nyall Dawson
7c0665a331
Clearer ownership, docs for rule based renderer
2018-03-16 08:18:36 +11:00
Luigi Pirelli
685adbf7e1
Merge pull request #6615 from elpaso/bugfix-16967-multi-in-value-relation
...
[bugfix] value relation widget with Allow multiple selection doesn't resolve
2018-03-15 17:09:45 +01:00
Luigi Pirelli
d771991a01
Merge pull request #6603 from slarosa/fix_18435
...
Fixes #18435 : QGIS crash when deleting auxiliary layer
2018-03-15 15:15:55 +01:00
Alessandro Pasotti
4f05ed1dd7
[bugfix] value relation widget with Allow multiple selection doesn't resolve
...
Now it will accept arrays as well as string representations of arrays
Added a test
Fixes #16967 value relation widget with Allow multiple selection doesn't resolve the values anymore
2018-03-15 15:11:52 +01:00
Salvatore Larosa
74689dfe9d
fix typo: followup 24ef27d079
2018-03-15 14:32:57 +01:00
Salvatore Larosa
24ef27d079
add unit test for setAuxiliaryLayer
2018-03-15 11:01:23 +01:00
Nyall Dawson
d907ba05fc
[processing] Expand 'algorithm' group in history on load
...
Since all the useful stuff is in that group, you ALWAYS need
to expand it anyway!
2018-03-15 16:57:31 +10:00
Nyall Dawson
dc27d12046
Fix documentation test
2018-03-15 17:55:25 +11:00
Nyall Dawson
bd1d87ed86
[processing] Allow algorithms to set layer post-processors for
...
execution on generated layers after the algorithm (or parent
model) completes
This commit adds an interface for layer post-processing handlers
for execution following a processing algorithm operation.
Post-processing of a layer will ONLY occur if that layer is set
to be loaded into a QGIS project on algorithm completion.
Algorithms that wish to set post-processing steps for generated
layers should implement this interface in a separate class
(NOT the algorithm class itself!) and implement a method
to handle the layer post-processing.
This method always runs in the main thread and can be used to
setup renderers, editor widgets, metadata, etc for the given layer.
Fixes #17961
2018-03-15 17:55:25 +11:00
Nyall Dawson
09e5a4f7be
Fix descriptions and names for processing parameters
2018-03-15 13:54:06 +10:00
Nyall Dawson
654a4a4af6
[processing] Fix algorithm progress bar resets to 0 when an algorithm
...
reports a non-fatal error
Fixes the "flashy" progress bar when an algorithm encounters a lot
of errors.
2018-03-15 13:43:01 +11:00
Nyall Dawson
9e351e80fc
Fix flaky VirtualLayerTask test
2018-03-15 13:42:44 +11:00
Nyall Dawson
feb20a7a27
Add unit test for postgres layer metadata
2018-03-15 10:43:04 +11:00
Nyall Dawson
7dd5cafc00
[postgres] Automatically populate layer metadata
...
Not much is available to automatically populate, but we can
set the abstract to match the table comment, the crs, and datatype.
2018-03-15 10:43:04 +11:00
Salvatore Larosa
f55347ff31
[macos] move add button on the right in datasource manager
2018-03-14 22:44:04 +01:00
Salvatore Larosa
8aa7b56505
Fixes #18435 : QGIS crash when deleting auxiliary layer
2018-03-14 14:52:51 +01:00
Denis Rouzaud
4c1e19c080
fix constraints not checked when they should be ( #6550 )
2018-03-14 07:49:37 -04:00
Salvatore Larosa
193c554b4c
trigger editing on group item when grouping selected layers
2018-03-14 09:56:17 +01:00
Denis Rouzaud
914e7bbe89
[docker] create images for final releases ( #6594 )
...
* [docker] create images for final releases
based on git tags
* fix script
2018-03-13 08:14:44 -08:00
Alexander Bruy
88e8acddf8
Merge pull request #6571 from slarosa/fix_18183
...
[processing] SAGA "output extent" should not be mandatory (fix #18183 )
2018-03-13 08:45:45 +02:00
Nyall Dawson
6f01d30d14
[gdal] ifdef out some workarounds not required in gdal >= 2.3
2018-03-13 11:18:08 +11:00
Nyall Dawson
f95d616d6a
Correctly show ers files in browser
...
Workaround missing metadata in gdal driver
2018-03-13 11:18:08 +11:00
Nyall Dawson
ce59cbd6f7
Sipify
2018-03-13 10:39:49 +11:00
Nyall Dawson
b0ae1e426b
Correctly install palette resources
2018-03-13 10:39:49 +11:00
Nyall Dawson
a75b85fa09
Add missing default palette
2018-03-13 10:39:49 +11:00
Nyall Dawson
14c8b3c75d
[neeeds-docs] Show all color schemes and tools for interacting with the in the
...
options->color tab
This brings all of QGIS' color scheme handling to a more logical and
user-discoverable place. Previously this functionality was only
available inside the color dialog itself (i.e. users would have to start
changing a color before they could create and edit schemes)
2018-03-13 10:39:49 +11:00
Nyall Dawson
2a0f36499a
Show scheme selector in color section of options
2018-03-13 10:39:49 +11:00
Nyall Dawson
21ef2fd42b
Provide a simple initial palette for new layers
...
TODO: make it AWESOME!
2018-03-13 10:39:49 +11:00
Nyall Dawson
7e6796c657
By default, generate new layer colors from a random selection
...
in a preset palette
The palette is packaged as resources/new_layer_colors.gpl
TODO: allow users to set a different palette
2018-03-13 10:39:49 +11:00
Nyall Dawson
149b23e08b
Allow updating gpl based color schemes which are set to the
...
default random color scheme
Allows users to edit the color scheme inside QGIS and see the
effects immediately on next layer load
2018-03-13 10:39:49 +11:00
Nyall Dawson
bc449c401b
Move generation of default symbol random colors to
...
QgsColorSchemeRegistry
and add API to set a QgsColorScheme from which to pull
colors when creating a random symbol color.
2018-03-13 10:39:49 +11:00