15238 Commits

Author SHA1 Message Date
Éric Lemoine
23872fcc41 Improve the API docs 2019-06-18 14:48:23 +02:00
lbartoletti
35c4209bfd New parameter for WMS service: tile_buffer [needs-docs][FEATURE] 2019-06-04 07:20:29 +02: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
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
Nyall Dawson
85e207897b Add API to retrieve avaiable coordinate operations between a source
and destination QgsCoordinateReferenceSystem on proj >= 6 builds
2019-05-27 08:26:34 +10:00
Nyall Dawson
b4d18f8e0c Mark older datum transform methods as deprecated - they don't work under proj 6 2019-05-27 08:26:34 +10:00
Nyall Dawson
bed77bbfa8 Add method to retrieve underlying PJ object from a QgsCoordinateReferenceSystem
proj 6 only
2019-05-27 08:26:34 +10:00
volaya
943b992ed3 [processing] fixed method name in gui wrapper after API renaming 2019-05-26 01:01:09 +02:00
Alexander Bruy
121a92df7d
Merge pull request #10074 from alexbruy/grass-r-sun
[processing] split GRASS r.sun algorithm into two (fix #21637)
2019-05-25 07:59:19 +03:00
Mathieu Pellerin
a888986567
[needs-docs][processing] Avoid field collision via optional prefix in overlay algorithms (#10092)
Makes for a more predictable collision avoidance, which
can be neccessary for some models.
2019-05-24 19:00:28 +07:00
Alexander Bruy
dc6780a8fd
Merge pull request #10082 from alexbruy/postgis-comment
[db_manager] apply comment to the correct column when altering table column (fix #21425)
2019-05-24 11:32:08 +03:00
Alexander Bruy
e8a74f4537 [processing][needs-docs] allow to switch from batch dialog to single UI
(fix #16893)
2019-05-24 08:51:34 +10:00
volaya
94e13289b8 [processing] do not export sdat files provided as part of a multiple raster input
fixes #22131
2019-05-24 07:32:59 +10:00
Denis Rouzaud
f0f0790777
move QgsHighlight style setting in a static method (#10064) 2019-05-23 07:56:49 -05:00
Alexander Bruy
03abf0e42b [db_manager] apply comment to the correct column when altering table
column (fix #21425)
2019-05-23 15:43:14 +03:00
Alessandro Pasotti
1802c529de
Merge pull request #10077 from elpaso/bugfix-22033-dbmanager-wrong-shp-import
db-manager: Update input layer and table names
2019-05-23 12:04:47 +02:00
volaya
83e6dd3efe [processing] fixed description of SAGA gaussian filter algorithm
Fixes #21797
2019-05-23 11:46:56 +02:00
Alessandro Pasotti
3df7f897f6 db-manager: Update input layer and table names
when selecting an external file

Fixes #22033 - wrong shapefile import
2019-05-23 10:58:01 +02:00
Alessandro Pasotti
d16e693c18
Merge pull request #10063 from elpaso/bugfix-22035-processing-pg-camel-case-schema
Bugfix 22035 processing pg camel case schema
2019-05-23 09:58:02 +02:00
Alexander Bruy
6009070502 update tests 2019-05-23 10:54:16 +03:00
Alessandro Pasotti
bb567cd5b8 Processing importintopostgis: Do not transform table name to lowercase 2019-05-23 09:14:59 +02:00
Alexander Bruy
ab646c4d75 [processing] split r.sun into two algorithms as it has mutually
exclusive options (fix #21637)
2019-05-23 10:13:50 +03:00
nirvn
f9810a4534 [effects] Fix blur radius not taking dpi into account (fixes #14885) 2019-05-23 11:34:15 +07:00
Nyall Dawson
7e78874807 Fix rule based label/symbol renderers reset max scale for rules to
1:100000

And improve dox

Fixes #21845
2019-05-23 12:55:33 +10:00
Alexander Bruy
88647ff5a6 [processing] use correct parent layer parameter in v.net.distance
algorithm (fix #22013)
2019-05-23 09:45:22 +10:00
Alexander Bruy
dd8c5c1611 [processing] move "Split RGB bands" algorithm inside "Raster tools"
group to maintain consistency (fix #21849)
2019-05-23 09:45:05 +10:00
Alexander Bruy
bef58ac6a7 [processing] use correct file extension in r.in.lidar.info (fix #21910) 2019-05-23 09:44:39 +10:00