19103 Commits

Author SHA1 Message Date
Alessandro Pasotti
d762646b81 Add SIP_DEPRECATED 2021-03-02 11:39:55 +01:00
Alessandro Pasotti
dccef52208 Support vector and raster mime URIs at the same time
Fixes #41563
2021-03-02 11:20:28 +01:00
Alessandro Pasotti
c6699b28b2
Merge pull request #41823 from elpaso/bugfix-gh41800-server-geprint-accesscontrol
Server WMS GetPrint accesscontrol support
2021-03-02 07:58:12 +01:00
Nyall Dawson
4c50469bd0 Spelling 2021-03-01 10:35:43 +10:00
Nyall Dawson
4240e20248 Add API to QgsProviderRegistry to obtain user friendly warning messages
for when a URI cannot be opened in a QGIS install, but the URI
matches a format which could potentially be opened in a different QGIS
install.

This can be used to show user-friendly warning messages advising user why
a particular uri cannot be opened on their QGIS install. For example, if
a QGIS install is built without the PDAL library then las/laz files are
unusable, and this method can be used to retrieve a user-friendly warning
as to why the las/laz files cannot be used on their QGIS build.

Instead of just showing the user a generic "not a valid or recognized data
source" error, we can use this api to show more helpful URIs about the
specific uri.

Initially intended to help advise users why LAS/LAZ files cannot be
opened on their QGIS install, but also could be used e.g. by mdal
to advise users about missing third party libraries preventing
them from opening certain mesh files, etc....
2021-03-01 10:09:06 +10:00
nirvn
a5f001e135 [gdal][ui] Fix opening of gdal rasters within ZIP containers in the data source manager dialog 2021-02-28 16:52:18 +07:00
Alessandro Pasotti
618966aa6b Add tests and fixes for Atlas
The change to the the feature filter group filterFeatures
(do not clear pre-existing filters) should not be a behavioral
change: additional filters are ANDed.
2021-02-27 08:48:16 +01:00
Alessandro Pasotti
59202c47a4 spell 2021-02-27 08:48:16 +01:00
Alessandro Pasotti
2318d761b2 QGIS 3 style doxy 2021-02-27 08:48:16 +01:00
Alessandro Pasotti
0470b5ff03 Server access control GetPrint support
Fixes #41800
2021-02-27 08:48:16 +01:00
Alessandro Pasotti
6d02a2abb0 Fix server getPrint accesscontrol for map items
Fixes #41800
2021-02-27 08:48:16 +01:00
Nyall Dawson
7e5b6dde2f Loosen test precision following Geographiclib area calculation switch 2021-02-27 13:15:22 +10:00
Nyall Dawson
2cbffdd9bc [processing][gdal] Partially revert 570972b22707533
- gdal_calc command is gdal_calc.py, not gdal_calc
- commandName() method is used for more than just the command line
generation, so move extension handling to getConsoleCommands() only
2021-02-27 11:43:40 +10:00
Nyall Dawson
fe566bcc09
Merge pull request #41847 from nyalldawson/fix_41839
Fix many issues in gdal algs...
2021-02-27 09:34:39 +10:00
Matthias Kuhn
67c27c2ded
Merge pull request #41826 from jakimowb/master
fixed QgsPluginInstaller.installFromZipFile
2021-02-26 04:03:35 +01:00
Nyall Dawson
6a7e4c133e [processing][gdal] Fix escaping of connection string in OGR to postgis
alg

Fixes #41839
2021-02-26 12:05:53 +10:00
Nyall Dawson
964431a0cc [processing][gdal] Fix SQL command in points along lines algorithm 2021-02-26 12:05:41 +10:00
Nyall Dawson
c5dd8714a8 [processing] Fix escaping of srcnodata argument in Build Virtual Raster
alg
2021-02-26 12:02:59 +10:00
Nyall Dawson
33b0dbe761 [processing][gdal] Fix escaping of delimiter parameter in retile
algorithm
2021-02-26 11:50:51 +10:00
Nyall Dawson
0a6436402d [processing][gdal] Don't insert 'temporary file' strings in command for non-specified optional outputs 2021-02-26 11:47:37 +10:00
Nyall Dawson
ea113cbf4a [processing][gdal] ";" characters must be escaped when running gdal
commands
2021-02-26 11:30:49 +10:00
Nyall Dawson
d6a706a817
Merge pull request #41814 from agiudiceandrea/fix-gdalprovider-outputrasterext
[processing] Fix output raster extensions list for GdalAlgorithmProvider
2021-02-26 10:19:11 +10:00
tschmetzer
28c289d8ab
Improve QgsVectorLayer description (#41796)
Improve QgsVectorLayer description providing some more background explanation
2021-02-26 06:44:36 +10:00
tschmetzer
22026cc642
Add information about matching number of fields condition (#41799) 2021-02-26 06:43:40 +10:00
Benjamin Jakimow benjamin.jakimow@geo.hu-berlin.de
048af492b1 QgsPluginInstaller can now read zipfiles where 1st internal file is located in plugin subfolder 2021-02-25 14:57:03 +01:00
Alexander Bruy
acd627e913 [processing] add r.quantile algorithm with plain text output which can
be directly used as input for r.recode
2021-02-25 10:05:01 +02:00
Andrea Giudiceandrea
d43245c6ac
[processing] Fix sort order of output raster extensions list
to make it easier to find the extension in the long list of available extensions in the "Save to File" window of the GDAL provider algorithms
2021-02-25 07:49:02 +01:00
Andrea Giudiceandrea
91c8b23e90
[processing] Fix GdalUtils getSupportedRasters()
in order to correctly retrieve multiple extensions from GDAL drivers metadata DMD_EXTENSIONS instead of DMD_EXTENSION. See https://gdal.org/development/rfc/rfc46_gdal_ogr_unification.html#drivers-and-driver-registration
2021-02-25 07:36:19 +01:00
Nyall Dawson
cc9cbeca54 Use the GeographicLib routines exposed through PROJ for all ellipsoidal
calculations

Since GRASS upstream is moving away from the previous calculations which
all of QGIS' ellipsoidal distance/areas formulas are based on, let's
follow suit and delegate all these calculations to the GeographicLib
routines exposed through the PROJ api.

Refs https://github.com/OSGeo/grass/pull/1283
2021-02-25 16:35:37 +10:00
Andrea Giudiceandrea
ae097d41c7
[processing] Fix GDAL supported output raster extensions
Fix GdalAlgorithmProvider supportedOutputRasterLayerExtensions(self) in order to correctly return GdalUtils.getSupportedOutputRasterExtensions() instead of GdalUtils.getSupportedRasterExtensions()
2021-02-25 07:18:41 +01:00
Nyall Dawson
e18584239f Force c++14 only for sip builds, as sip generated code uses deprecated c++ removed in c++17 2021-02-25 11:08:56 +10:00
Nyall Dawson
a7fd8e07f5 Revert 2021-02-25 11:08:56 +10:00
Nyall Dawson
4d4e7c95ca Better fix 2021-02-25 11:08:56 +10:00
Nyall Dawson
6ab4ecfa58 Another attempt 2021-02-25 11:08:56 +10:00
Nyall Dawson
73658c5910 Fix mac build 2021-02-25 11:08:56 +10:00
Nyall Dawson
bd82925df3 Replace qgis::make_unique with std::make_unique
Now that we require c++14 features, we don't need to use the custom
backported version anymore...
2021-02-25 11:08:56 +10:00
Matthias Kuhn
b3dae9ad1a
Merge pull request #41539 from elpaso/bugfix-gh41477-editbuffer-passthrough
Bugfix gh41477 editbuffer passthrough
2021-02-24 14:42:49 +01:00
Nyall Dawson
ccaca736c3 [api] Add option for setting a line symbol to use when rendering
a QgsRubberBand
2021-02-24 15:07:18 +10:00
Nyall Dawson
ad56216f14 A horizontal mouse wheel scroll over the canvas "scrubs" the temporal
range slider back or forward
2021-02-24 13:21:32 +10:00
Nyall Dawson
14f2ab53b1 When attempting to precalculated nodes during an expression prepare
stage, be more intelligent about compiling AND or OR nodes

We can take advantage of the fact that and AND node will ALWAYS
be false if either input node is static and evaluates to FALSE,
and that OR nodes will always be true if either input is static
and evaluates to TRUE.

In some cases this allows us the shortcut and cut out non-static
nodes during preparation, resulting in faster evaluation and
more easily compiled expressions...
2021-02-24 12:39:36 +10:00
Nyall Dawson
d007901f14 Allow QgsRectangle constructors to bypass the automatic normalization
step, when they know in advance they are already normalized

This step isn't free, and can add up when many rectangles are
constructed
2021-02-23 16:02:06 +10:00
Nyall Dawson
b15be66472 Spelling 2021-02-23 15:49:23 +10:00
Nyall Dawson
d84da56dca Add rendered callout details to QgsLabelingResults for retrieval after a map render completes 2021-02-23 15:49:23 +10:00
Nyall Dawson
4f39cf6d6c Move QgsLabelingResults out to its own file 2021-02-23 15:49:23 +10:00
Nyall Dawson
a513f5a1e6 Move QgsLabelPosition out to own file 2021-02-23 15:49:23 +10:00
Nyall Dawson
ee25819b75 [FEATURE][labeling] Add data defined control over callout origin
and destination points

Allows users to data define the starting and ending points for
label callout lines, which is useful when needing to manually
control the exact placement of individual callout lines.
2021-02-23 13:41:58 +10:00
Nyall Dawson
d2e0e8d3b0 Add method for a callout to obtain a transform from the original
associated layer's crs to the destination map crs
2021-02-23 13:41:58 +10:00
Nyall Dawson
e11801d34e Require Proj version 6 or later, drop old proj 4 compatibility code 2021-02-23 12:47:04 +10:00
Matthias Kuhn
a825b5af35
Merge pull request #41738 from m-kuhn/alg_exec_no_selection_unbound_local
Fix calling in place with empty iterator
2021-02-22 21:59:36 +01:00
Nyall Dawson
7b37f32b4f Add mechanism to defer updates of rubber bands when adding multiple
geometries

GREATLY speeds up rubber band creation for many geometries, resulting
in consequent speed ups to the move features tool, rotate features tool,
....
2021-02-23 05:20:00 +10:00