15261 Commits

Author SHA1 Message Date
Alessandro Pasotti
103ef762ca Factor out generateId for layers and fix QLR mutiple layers id import 2019-06-10 17:58:22 +02:00
Alessandro Pasotti
a295701023 ResolveLayer returns a layer instance instead of an ID 2019-06-10 15:39:52 +02:00
Alessandro Pasotti
f9b50b5b38 Move layer resolver into a static method 2019-06-10 14:10:11 +02:00
Alessandro Pasotti
dcc779a62d Added a test and fix layer config in the wrapper too 2019-06-10 12:32:30 +02:00
Harrissou Sant-anna
352423e443 Update help Url for Core plugins in official doc 2019-06-10 08:24:55 +10:00
Alessandro Pasotti
79219dae23 Forward port of histogram binding fix with a bonus test
Fwd port of PR #30033
Fixes #29700

With a new test for the bug.
2019-06-09 10:25:50 +02:00
Even Rouault
b1e4a270e5
Merge pull request #30103 from boundlessgeo/master-wfs-conn-dlg
Fix some issues with WFS connection dialog
2019-06-07 11:34:20 +02:00
Martin Varga
f4e11bf7d5 [processing] tiles_xyz: maximize map preview 2019-06-07 11:09:41 +02:00
Martin Varga
228040d153 [processing] tiles_xyz: get rid of unlabeled areas at the edges of metatiles 2019-06-07 11:09:41 +02:00
Martin Varga
4013925083 [processing] deferred transparency/bg_color option in xyz alg 2019-06-07 11:09:41 +02:00
Martin Varga
ebab737420 [processing] changed alpha to transparent option in tiles_xyz, default bg color from canvas 2019-06-07 11:09:41 +02:00
Martin Varga
3a9b32d635 [processing] added new options (alpha, quality, tile_size) to xyz alg 2019-06-07 11:09:41 +02:00
Nyall Dawson
861c5115eb Fix various clazy warnings 2019-06-07 16:40:18 +10:00
Alessandro Pasotti
96c3357915
Merge pull request #30100 from elpaso/bugfix-gh29937-duplicated-datefield-crash
Do not emit dateChanged signal if value has not changed
2019-06-07 08:18:47 +02:00
Harrissou Sant-anna
a749cd9c0c Add a help button to the Processing History dialog
connected to the docs
2019-06-07 07:14:05 +10:00
Larry Shaffer
018df8c129
Fix WFS connection's version Detect button, which did not support auth
Adds QgsNewHttpConnection protected member to access auth settings
2019-06-06 10:41:58 -06:00
Matthias Kuhn
26e8e22603
Merge pull request #30109 from DelazJ/processingTestReadme
Fixing typo
2019-06-06 16:09:56 +02:00
Harrissou Sant-anna
b8e94e9a5e
Better wording
Co-Authored-By: Matthias Kuhn <matthias@opengis.ch>
2019-06-06 13:50:39 +02:00
Harrissou Sant-anna
065c7518bc
Fixing typo 2019-06-06 13:02:03 +02:00
Alessandro Pasotti
58fcd60f49
Emit newProject after save project as ... (#30025)
* Emit newProject after save project as ...

Fixes #29919

* Use QgisApp::projectSavedAs signal when project is saved with a new path

* Update browser project home path when saved as

* Set home path when reading a project

* Emit homePathChanged in any case
2019-06-06 12:04:22 +02:00
Alessandro Pasotti
8ffdb4ae28 Remove old incomplete documentation 2019-06-06 11:57:19 +02:00
Nyall Dawson
8b16e05998 Cleaner handling of raster provider native resolutions 2019-06-06 17:11:06 +10:00
Alexander Bruy
74d6b23853
Merge pull request #30045 from alexbruy/dbmanager-versioning
[dbmanager] add primary key to the view created by versioning plugin (fix #25888)
2019-06-05 10:47:28 +03:00
Nyall Dawson
87d2d9e824 Fix inverted polygon renderer widget not opening colors and other
panels inline in style dock
2019-06-05 04:00:58 +10:00
Nyall Dawson
a98d12e1e0 Dox 2019-06-04 06:18:17 +10:00
Nyall Dawson
1bc716fc61 [labeling] Fix incorrect bounding box of labels used when
map is rotated

Fixes #24680
2019-06-04 06:18:17 +10:00
Nyall Dawson
004b7d879a [labeling] Fix cannot use labeling map tools when canvas is rotated
Fixes #25384
2019-06-04 06:18:17 +10:00
Luigi Pirelli
357328aade
Merge pull request #29992 from ghtmtt/processing_ndvi
[processing] fix NDVI calculation formula in builtin raster calculator
2019-06-03 09:51:33 +02:00
Nyall Dawson
789dbb570b Add friendly, descriptive errors when opening a project which has
preset non-default coordinate operations set between a crs pair,
which use grids that are not available on the local system
2019-06-03 16:46:54 +10:00
Nyall Dawson
f758bb7214 Add mechanisms to set handlers for coordinate transform creation errors and warnings 2019-06-03 16:46:54 +10:00
Nyall Dawson
d754a09296 Refactor to extract useful method 2019-06-03 16:46:54 +10:00
Nyall Dawson
a4e5e6a598 [needs-docs] Append a local, user writable folder to proj 6 search paths
Now, proj will search in the current user profile "proj" folder (e.g.
.local/share/QGIS/QGIS3/profiles/default/proj" on linux) for
grid files and other proj helper files.

This allows users (and plugins) to install grid files and make them
available for use in QGIS without requiring administrator access
to the system.
2019-06-03 10:38:22 +10:00
Juergen E. Fischer
19933e0feb processing: avoid fetching the layer parameters when not executing 2019-06-01 09:10:39 +02:00
Juergen E. Fischer
5a54eb7739 processing: add option to select directory to recurse for files (fixes regression with a number of tools that used to have this - eg. buildvrt for instance) 2019-05-31 19:02:48 +02:00
Alexander Bruy
b489c21b58 [dbmanager] add promary key to the view created by versioning plugin
(fix #25888)
2019-05-31 14:55:35 +03:00
Nyall Dawson
c82d3b643f Upgrade QgsCoordinateTransformContext for proj 6
This reworks (on proj 6 builds only!) QgsCoordinateTransformContext
to use proj strings of proj coordinate operations to handle the
users' preferred list of operations when transforming coordinates
between two CRSes.

Previously, the context heavily utilised internal transform ID
numbers, which were QGIS specific and relied on matching entries
from the QGIS srs.db file. This approach was undesirable because
it meant QGIS had to maintain and carry it's own table of
possible transform pathways between CRS pairs (which was difficult
to update, impossible to track, and most likely severely out of
date).

Now we can utilse Proj 6's (wonderful!) logic for determining the
best coordinate operation to utilise between two CRSes. All the
old API has been deprecated and no longer works under proj 6, but
that's unavoidable (and unlikely to be in use by plugins anyway,
it's VERY low level stuff).

A further bonus of this work is that QgsCoordinateTransform no
longer relies on proj strings of the source/dest CRS to build
the transform -- the issue with that approach was that proj
strings are lossy (and not always possible to generate), so
now by default we are generating better pathways between CRS
pairs.

This resolves issues with transforms which rely on pivot datums,
such as GDA94 - GDA2020 conversions.

Sponsored by ICSM
2019-05-31 10:38:08 +10:00
Nyall Dawson
0cf4ecf491 Deprecate a QgsCoordinateTransformContext members which don't
apply in proj >= 6.0 builds
2019-05-31 10:38:08 +10:00
Nyall Dawson
c61fb85ed6 Remove unused support for single source/dest settings in QgsCoordinateTransformContext
This has been #ifdef'ed out since it's original implementation,
and it has no meaning in the world of Proj >= 6.0
2019-05-31 10:38:08 +10:00
Nyall Dawson
be11896012 Fix exception in BatchAlgorithmDialog 2019-05-31 09:54:30 +10:00
Alexander Bruy
1d1d2ca703 Revert "[processing] populate batch interface with rows when multiple layers"
This reverts commits f8890d8f047cd2bb934eaad83e1057814927adb5,
f085f5527658c0a81b9a065a6fcee4d654d16bb6 and 5844a0fc906c744327139e137642f0ec97ae240a
2019-05-30 12:05:52 +03:00
Nyall Dawson
7213030ad9 [labeling] Fix missing labels when multilinestring features are used in
conjunction with the "merge connected lines" setting

Refs #12173
2019-05-30 17:27:00 +10:00
Nyall Dawson
788ee78d74 Sip update 2019-05-30 06:28:32 +10:00
Nyall Dawson
dac7259b46 [needs-docs] Rework new project CRS handling
The previous approach was severely broken, because the default
CRS for new projects setting was ignored as soon as a layer
was added to the project.

Instead, refine the setting to add options
- "Use CRS from first layer added": same as previous behavior,
the project CRS is set to match the first layer added to a new
project
- "Use a default CRS": CRS for a new project is set to a preset
default CRS, and is left unchanged when adding layers to the
project

Also update qgis_global_settings.ini to reflect these changes.

Fixes #27516
2019-05-30 06:28:32 +10:00
Alexander Bruy
f8d0ecc7ee [processing] add default value to user filter matrix (fix #29999) 2019-05-29 13:43:18 +03:00
matteo
cf634aa3aa [processing] fix NDVI calculation 2019-05-28 15:40:47 +02:00
saber
169e246fdc fixes issue with db lock when writing mbtiles 2019-05-27 14:45:16 +02:00
Alessandro Pasotti
3f1ba81b7e Address PR comments (minor changes) 2019-05-27 09:20:34 +02:00
Alessandro Pasotti
564fd50e43 Fix spatialite handling of JSON arrays
Fixes #21986

plus:

- fix multiple string keys with commas in value relation widget
- more robust JSON and array (un)marshalling
- uniform array representation in value relation widgets
- lot of test coverage
- automatic QVariant type conversions in JSON utils
2019-05-27 09:20:34 +02:00
Denis Rouzaud
d7fa0286c4
do not insert layers in embedded groups (#10004)
fixes #29678
2019-05-26 23:25:15 -05:00
Denis Rouzaud
09126ded98
make flashing independent from panning/zooming in attribte table in attribute editor mode (#29955) 2019-05-26 22:21:10 -05:00