3150 Commits

Author SHA1 Message Date
Marco Hugentobler
3ecb5e5cc8 Add const, nullptr and improve docstrings 2021-05-11 15:25:48 +02:00
Marco Hugentobler
af607f74e3 More code layout 2021-05-07 16:42:41 +02:00
Marco Hugentobler
fc2a0d60ad Spelling and documentation 2021-05-07 16:33:33 +02:00
Marco Hugentobler
8da3d112c5 Export label symbol also to json 2021-05-07 15:05:25 +02:00
Marco Hugentobler
260f4b7ac2 [FEATURE]: Show legend entries for labeling 2021-05-06 11:03:15 +02: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
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
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
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
Nyall Dawson
063f2ee852 Add optimised method to create QgsCircularString direct from coordinate
arrays
2021-04-27 14:53:20 +10:00
Nyall Dawson
729792d981 Add QgsCurve::indexOf to retrieve index of a specified QgsPoint
within the curve
2021-04-27 11:26:49 +10:00
Damiano Lombardi
952a77afe9 Renamed some methods of QgsSettingsRegistry 2021-04-26 18:19:49 +02:00
Damiano
70ab21f121 Rebase to current master 2021-04-26 15:45:04 +02:00
Damiano
1def5e7b94 Python QgsSettingsEnum and Flag unified in QgsSettingsEnumFlag 2021-04-26 15:10:53 +02:00
Damiano
91f96a2fba Moved remaining digitizing settings (enum/flag) 2021-04-26 15:10:50 +02:00
Damiano
eaf18f6060 Moved all digitizing settings except Enums and Flags 2021-04-26 15:09:24 +02:00
Damiano
4fb0ab2df1 Enum flag sip 2021-04-26 15:09:22 +02:00
Damiano
95dfe0f45c Removed settings struct 2021-04-26 15:07:21 +02:00
Damiano
00a7936389 Moved most core settings to SettingsEntry 2021-04-26 15:04:07 +02:00
Denis Rouzaud
96cee9f496
Merge pull request #42860 from domi4484/settingsRegistryQep124PartTwo
Settings registry (QEP 124) part two settings introspection
2021-04-26 14:13:45 +02:00
Damiano
8a7bfa18e1 Renamed method addChildSettingsRegistry to appendRegistry 2021-04-26 11:44:48 +02:00
nirvn
9989cffb3c [feature][callouts] Add blending mode settings 2021-04-26 19:34:16 +10:00
Nyall Dawson
9c4375b4c7 Add QgsGeometry::isAxisParallelRectangle for checking whether
a geometry is a axis-parallel rectangle

Credit to @stefanuhrig
2021-04-24 06:25:02 +10:00
Nyall Dawson
e5c709ccd6 [api] Provide a mechanism to specify a list of fallback font families for
QgsTextFormat

Just like in CSS, these families will be used as an ordered list
of fonts to fallback on if the actual text format font isn't available
on a particular QGIS install.

This is API only, and isn't designed to be shown anywhere in QGIS.
Instead the intended use is for creators of QGIS styles to either use
the raw api to specify the list of fallback fonts OR hand edit the
style xml to add the fallback fonts, e.g by adding a block like:

    <families>
      <family name="Arial"/>
      <family name="Helvetica"/>
      <family name="Sans"/>
    </families>

To the "text-style" parent element.
2021-04-22 16:39:24 +10:00
Nyall Dawson
ed65a6a3a7 Add utility functions to retrieve proj EPSG/ESRI/IGNF database versions 2021-04-22 14:39:47 +10:00
Mathieu Pellerin
0a76d70e9c Address comments 2021-04-22 09:40:17 +07:00
nirvn
584283ddaa [oauth2] Handle the opening and closing of browser through the network authentication
handler
2021-04-22 09:32:01 +07:00
Damiano
e99b92a92c Applied suggestions from code review 2021-04-20 14:41:47 +02:00
Damiano
fc55866155 Removed move of settings for a separate pr 2021-04-19 13:05:15 +02:00
Damiano
598f6c73f0 Moved QgsSettings class in subdir settings 2021-04-19 10:22:04 +02:00
Nyall Dawson
ffa99b7b64 Fix doxygen blocks which don't use the * prefix on all lines, which
prevents the auto format and sipify scripts from doing their full
formatting magic
2021-04-19 12:54:13 +10:00