2997 Commits

Author SHA1 Message Date
Nyall Dawson
7c410120e3 Super-optimised version of geometry bounding box intersects test
Apply some fancy logic to make this test as cheap as possible
to run
2021-03-12 05:46:14 +10:00
Nyall Dawson
5445aceaff Add QgsRectangle::contains overload which doesn't require QgsPoint/QgsPointXY objects 2021-03-12 05:46:14 +10:00
Nyall Dawson
7fb3c83e76 Sipify 2021-03-12 05:46:14 +10:00
Blottiere Paul
1970df7e50 Update doc to 3.20 2021-03-10 13:31:59 +01:00
Blottiere Paul
3799f60949 Update doc 2021-03-10 08:37:50 +01:00
Blottiere Paul
0c831ddec4 Invalidate wgs84 extent when setting a transform context 2021-03-10 08:37:50 +01:00
Blottiere Paul
fd965af147 mExtent is private 2021-03-10 08:37:50 +01:00
Blottiere Paul
d9dfa5d2c9 Some renaming 2021-03-10 08:37:50 +01:00
Blottiere Paul
c21a1ca9ca Add doc 2021-03-10 08:37:50 +01:00
Blottiere Paul
f94e29ee65 Update doc 2021-03-10 08:37:50 +01:00
Blottiere Paul
36b77764bf Add an actual parameter to geographicExtent to bypass the trust option 2021-03-10 08:37:49 +01:00
Blottiere Paul
476ebecbe2 Read the geographic extent from project 2021-03-10 08:34:41 +01:00
Alessandro Pasotti
b6e01f98e2 Project: store geographic extent 2021-03-10 08:33:46 +01:00
Nyall Dawson
10c3a1a382 Fix application hangs when attempting to load qlr file for
non vector/raster/vector-tile layer types

Refs #42112
2021-03-10 14:07:57 +10:00
Nyall Dawson
ebdb7ba95d Correctly store absolute/relative paths for point clouds in projects
Fixes #42114
2021-03-10 14:07:48 +10:00
Nyall Dawson
03edd718a1
Merge pull request #42154 from nyalldawson/provider_file_based
Fix broken bad layer handler dialog
2021-03-10 14:05:15 +10:00
Nyall Dawson
fd1c9f3ad1 Since 2021-03-10 13:00:20 +10:00
Mathieu Pellerin
53928bdbcc
[locators] Add a bounding box property to the abstract geocoder locator filter base class (#42133) 2021-03-10 08:24:44 +07:00
Nyall Dawson
def799810d Spelling, sip 2021-03-10 11:11:46 +10:00
Nyall Dawson
63a365a6a2 Add some utility functions to new QgsMapLayerFactory class for easier reuse 2021-03-10 09:39:46 +10:00
Mathieu Pellerin
2008f5ef57
[locators] Add a description property to locator filter base class (#42132) 2021-03-09 17:56:15 +07:00
Mathieu Pellerin
22d0826615
[processing] Fix atlas export relying on predefined scale for atlas-controlled map items (#42081)
* [processing] Fix atlas export relying on predefined scale for atlas-controlled map items

* De-duplicate code, add a QgsLayoutUtils::predefinedScale function
2021-03-09 06:49:48 +10:00
Nyall Dawson
e87e6720ec Impove dox 2021-03-06 16:37:46 +10:00
Nyall Dawson
5245430461 Add widget for Embedded Symbols renderer
Allows users to control the default symbol used for features without
embedded styles
2021-03-06 16:37:46 +10:00
Nyall Dawson
8845a7688a Allow conversion of embedded renderer to rule based renderers 2021-03-06 16:37:46 +10:00
Nyall Dawson
b4b5162344 Support conversion of embedded symbol renderer to categorized renderer 2021-03-06 16:37:46 +10:00
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
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
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
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
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
tschmetzer
28c289d8ab
Improve QgsVectorLayer description (#41796)
Improve QgsVectorLayer description providing some more background explanation
2021-02-26 06:44:36 +10:00