8072 Commits

Author SHA1 Message Date
vcloarec
9a3ad85533 interpolated line symbol layer 2021-05-05 09:03:13 +02:00
Matthias Kuhn
ef3d9a2c32
Merge branch 'master' into unvirtualize-setdatasource 2021-05-05 08:01:26 +01:00
Nyall Dawson
93b7a0c3d5 [api] Add option to QgsVectorFileWriter to store layer metadata for
created layer
2021-05-05 14:12:50 +10:00
Nyall Dawson
f5449a1fe9 (optionally) Store layer notes in QML/QLR and allow copying/pasting
when copying styles between layers

Sponsored by Alta Ehf
2021-05-05 08:44:22 +10:00
Nyall Dawson
3bdb2bbcbd Move layer notes utils to a new QgsLayerNotesUtils class so that they are accessible from core 2021-05-05 08:44:22 +10:00
Nyall Dawson
928e3ee2fe Dox 2021-05-05 06:57:58 +10:00
Nyall Dawson
2f77f6f015 Dox++ 2021-05-05 06:57:58 +10:00
Nyall Dawson
755182c134 Expose more geos methods 2021-05-05 06:57:58 +10:00
NEDJIMAbelgacem
d07a0b9a29 remove the use of QgsCustomPointCloudBlock 2021-05-04 10:11:21 +02:00
NEDJIMAbelgacem
7a03571fa7 code style review 2021-05-04 10:11:21 +02:00
NEDJIMAbelgacem
42ce3b6ae9 fix misplaced laszip tiles 2021-05-04 10:11:21 +02:00
Nyall Dawson
b4f1090ff7 Add method to combine two QGIS metadata objects
All non-empty elements from one metadata object are copied onto
the target metadata object
2021-05-04 17:46:51 +10:00
Mathieu Pellerin
c27e22f5fe
Merge pull request #43043 from nirvn/labeling_shields_imp
[feature][labeling] Use fill symbols to render rectangle,square,circle,ellipse background shields
2021-05-04 14:39:19 +07:00
Mathieu Pellerin
a9c678a1e0
Merge pull request #43027 from nirvn/desired
[layouts] Respect XYZ output zoom level when previewing map items in the layout designer
2021-05-04 14:07:34 +07:00
Mathieu Pellerin
65ba35921a Address review 2021-05-04 13:12:45 +07:00
Mathieu Pellerin
672d53e5fe Handle data defined properties upgrade when reading pre-3.20 project files 2021-05-04 11:57:28 +07:00
Mathieu Pellerin
4fad4bac0f [feature][labeling] Use fill symbols to render rectangle,square,circle,ellipse background shields 2021-05-04 11:57:28 +07:00
Nyall Dawson
667fe63521 Make saveLayerMetadata raise QgsNotSupportedException if saving metadata for uri is not supported
This allows us to disambiguate between "metadata storage for the
layer SHOULD be supported, but an error occurred while doing this"
vs "metadata storage for the layer will NEVER be supported" (eg for
a WFS layer or other read-only format)
2021-05-04 12:18:06 +10:00
Nyall Dawson
64a23d2645 Add QgsProviderMetadata::SaveLayerMetadata capability to indicate that a
provider has support for saving layer metadata
2021-05-04 12:18:06 +10:00
Nyall Dawson
2f2797318f Add QgsNotSupportedException, for operations which are not supported 2021-05-04 12:18:06 +10:00
Mathieu Pellerin
8299547682 Address review 2021-05-03 20:43:37 +07:00
Mathieu Pellerin
8d1371f3e9 [layouts] Respect XYZ output zoom level when previewing map items in the layout designer 2021-05-03 18:01:24 +07:00
Paul Blottiere
f00f89eb31
Merge pull request #42986 from lbartoletti/add_default_m_value
[API][UI] Add default M value
2021-05-03 08:44:49 +02:00
Nyall Dawson
5d703a4afc Add raw QgsProviderMetadata/QgsProviderRegistry API to save
QGIS layer metadata to a URI for the provider
2021-05-03 06:33:39 +10:00
Loïc Bartoletti
d8e91acedf sipify 2021-04-30 16:19:36 +02:00
Denis Rouzaud
4e9932c37f
Merge pull request #42954 from domi4484/settingsRegistryQep124PartThree
Settings registry (QEP 124) part three
2021-04-30 14:10:53 +02:00
Nyall Dawson
1a9a533fca [feature] Automatically translate layer data from ESRI Filegeodatabases
to QGIS layer metadata

Translate as much as possible of the original ESRI metadata across
to the QGIS metadata, so that it's immediately available for
use by users after loading a .gdb file.
2021-04-30 06:37:42 +10:00
rldhont
81ed419f2c fix move 2021-04-29 16:48:59 +02:00
rldhont
b60f5a4548 Revert "Revert "[API] Remove specific deprecated QgsVectorLayer::setDataSource""
This reverts commit 2524f9635a3d09c57ccebb78208cc7b3bf8fb9b6.
2021-04-29 16:37:16 +02:00
rldhont
809e0009eb Update method doc 2021-04-29 11:57:03 +02:00
Damiano
810af987d3 Removed setting entries from the python api 2021-04-29 11:18:55 +02:00
Nyall Dawson
3c06b6d425 If a text format with the name "Default" is found in the style database,
use this as the text format for newly created layer labels

Instead of defaulting to a random font, this gives us a mechanism
to supply a better default label font to users via the default
style database. And users can always modify this "default" text
format if they'd like to change the default font!

For now this is the underlying code logic changes only -- we
don't yet include a 'Default' text format in the default style database
to take advantage of this functionality.
2021-04-29 14:45:09 +10:00
Loïc Bartoletti
0a48e804c8 dox++ 2021-04-29 11:15:34 +10:00
Loïc Bartoletti
24dba98ab2 fix DocCoverage and Doxygen 2021-04-29 11:15:34 +10:00
Loïc Bartoletti
e837b6f5b5 deprecate and replace setZValueFromPoints by transferFirstZValuteToPoint 2021-04-29 11:15:34 +10:00
Loïc Bartoletti
95cff79cec replace setMValueFromPoints by transferFirstMValuteToPoint 2021-04-29 11:15:34 +10:00
Loïc Bartoletti
4231134f78 add a warning 2021-04-29 11:15:34 +10:00
Loïc Bartoletti
dcfa1bd02d Update setMValueFromPoints dox 2021-04-29 11:15:34 +10:00
Loïc Bartoletti
9e81011908 Adds setMValueFromPoints 2021-04-29 11:15:34 +10:00
Nyall Dawson
f22c63ec77 Rely on upstream GEOS makevalid algorithm for GEOS 3.9+
No point having our own internal fork of this code now that it's
included (and more importantly, maintained) upstream!
2021-04-29 08:45:25 +10:00
Nyall Dawson
1c11a91811 Add QgsGeometry::normalize()
A port of the equivalent method from GEOS, but with added support
for curved geometries and M values

Reorganizes the geometry into a normalized form (or "canonical" form).

Polygon rings will be rearranged so that their starting vertex is
the lower left and ring orientation follows the right hand rule, collections
are ordered by geometry type, and other normalization techniques are applied.
The resultant geometry will be geometrically equivalent to the original geometry.
2021-04-29 05:33:25 +10:00
Nyall Dawson
e3a73a1ac5 Add method to "scroll" the vertices of a closed curve geometry,
so that a particular vertex is the first one
2021-04-29 05:33:25 +10:00
rldhont
2524f9635a Revert "[API] Remove specific deprecated QgsVectorLayer::setDataSource"
This reverts commit 88c0d3f07db541b1cb6d5cc81f4aabc12741de26.
2021-04-28 15:00:16 +02:00
Nyall Dawson
417d444429 Add api to condense compound curves by merging adjacent parts of the
same type to single parts
2021-04-28 11:15:17 +10:00
Damiano
221d9f7f01 Fix docstrings 2021-04-27 14:15:56 +02:00
Nyall Dawson
bab01b1b75 Dox ++ 2021-04-27 21:13:22 +10:00
Nyall Dawson
9c53fb8635 Add QgsAbstractGeometry::compareTo( QgsAbstractGeometry*)
Allows for comparison of geometry objects, e.g. to allow for stable
sorting of them.

Ported from the GEOS equivalent method, but with addition of support
for M values and curved geometry types
2021-04-27 21:13:22 +10:00
Nyall Dawson
36e52f8514 Add method to split QgsCurve geometries into two parts at a specific
vertex index
2021-04-27 19:15:51 +10:00
Nyall Dawson
a9a6e38665 Add QgsCircularString::append( const QgsCircularString* )
Appends the contents of one circular string to the end of another
2021-04-27 19:15:33 +10:00
Nyall Dawson
1c94f6b941 Dox++ 2021-04-27 14:53:20 +10:00