19222 Commits

Author SHA1 Message Date
Nyall Dawson
6e6bcfd8bd Add default symbol property for embedded symbol renderer
Used as a fallback symbol for features without embedded symbology
2021-03-06 16:37:46 +10:00
Nyall Dawson
50082a396f Create new "Embedded Symbol" renderer
This renderer will draw features using their embedded feature symbology
2021-03-06 16:37:46 +10:00
Nyall Dawson
f32d563041 Add virtual method QgsFeatureRenderer::usesEmbeddedSymbols()
Should return true for feature renderers which require embedded
feature symbology. The corresponding feature request flag will
be set on the iterator used for the renderer will rendering vector
layers.
2021-03-06 16:37:46 +10:00
Nyall Dawson
c371bc3fe9 Add a QgsFeatureRequest::EmbeddedSymbols flag to indicate that feature level symbology should be fetched 2021-03-06 16:37:46 +10:00
Nyall Dawson
d8aba0c65a Add FeatureSymbology capability to QgsVectorDataProvider
If present, the provider is able to retrieve embedded symbology
associated with individual features.
2021-03-06 16:37:46 +10:00
Nyall Dawson
b8b5528297 Add embeddedSymbol getter and setter to QgsFeature
Allows for storing per-feature symbology, e.g. for symbols which
are an innate part of features from a dataset which supports
feature level symbology.
2021-03-06 16:37:46 +10:00
Nyall Dawson
ef147599df Add some helpful utility functions to QgsSymbol 2021-03-06 16:37:46 +10:00
nirvn
7eaa5b7074 [FEATURE][locator] Add a nominatim locator filter 2021-03-05 09:31:48 +07:00
Nyall Dawson
c6370c7f52
Speed up QGIS compilation by removing all Qt Module-wide includes
Refs https://www.kdab.com/beware-of-qt-module-wide-includes/
2021-03-05 11:23:15 +10:00
Nyall Dawson
aed7645b9e Make API more generic 2021-03-05 04:28:53 +10:00
Nyall Dawson
afccd31720 Add method to add a linestring to compound curves where we extend
the existing final part if it's a linestring and the newly added
curve is also a linestring, instead of adding a whole new curve
2021-03-05 04:28:31 +10:00
Alessandro Pasotti
0908a0990e Add missing sip factory 2021-03-05 04:28:12 +10:00
Nyall Dawson
dfe734f650 [feature] Add per-field control over whether last entered field
values should be reused when creating new features

While there has long been a global option that causes ALL field
values for ALL layers to be remembered and reused during a QGIS
session when creating new features, this new setting offers
per-layer, per-field control over whether values should be
reused.

It allows for finer control over form behavior, where eg some
values may be desirable to reuse but others should be cleared
or set from default value expressions.
2021-03-04 15:21:07 +10:00
Nyall Dawson
f51e38b117 Switch line endpoint snap to a distinct vertex marker (inverted
triangle)

And minor cleanup/optimisation to QgsVertexMarker code
2021-03-04 12:20:39 +10:00
Nyall Dawson
b8baabf3f4 [FEATURE] Add new snapping option for "Line Endpoints"
When enabled, this snapping mode snaps to the beginning or end
vertex of lines only. When snapping to a polygon layer, only
the first vertex in rings will be snapped to.

Refs Natural resources Canada Contract: 3000720707
2021-03-04 12:20:39 +10:00
Nyall Dawson
1040fe8705 Don't silently swallow exceptions in python context managers
Notably this causes processing modules to silently fail to load
without any warnings if the required dependancies (such as pyscopg2)
are not installed
2021-03-04 07:39:47 +10:00
Alessandro Pasotti
5c3a5f5660
Merge pull request #41967 from elpaso/bugfix-gh41563-ogr-gdal-drag-and-drop-take2
Support vector and raster mime URIs at the same time
2021-03-03 21:44:30 +01:00
talledodiego
0e6ffc7045
[gdal] rasterize - Include the possibility to use Z of feature to extract burn values 2021-03-03 11:16:13 +10:00
Alessandro Pasotti
675e150108 Remove deprecated calls 2021-03-02 12:25:15 +01:00
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