2794 Commits

Author SHA1 Message Date
Denis Rouzaud
fd7406cb08
Merge pull request #40716 from 3nids/qvariant-properties
use QVariantMap instead of QgsStringMap for symbol layer properties
2021-01-06 11:21:41 +01:00
Nyall Dawson
3d23cb62af Add missing QgsInterval != operator 2021-01-06 13:28:16 +10:00
Samweli
a75211cc5a fix for additional review comments 2021-01-06 13:28:16 +10:00
Samweli
21c28bc9dc addressed review comments 2021-01-06 13:28:16 +10:00
Samweli
4513033c05 returned setFrameDuration and frameDuration functions in the temporal navigation object 2021-01-06 13:28:16 +10:00
Daniel Minor
8aac2388c2 Use time step when exporting animation 2021-01-06 13:28:16 +10:00
Daniel Minor
f2d5d5f4db Address review feedback 2021-01-06 13:28:16 +10:00
Daniel Minor
d07cb9720f Rerun sipify after documentation fix 2021-01-06 13:28:16 +10:00
Daniel Minor
9da580cb3d Pass time step and time step unit into QgsTemporalNavigationObject
Currently, we pass the frame duration as a QgsInterval and use the average
duration of a month or year during the animation, for instance, 30 days
rather than a month. This makes it impossible to have an animation that
displays on a particular day each month, as the day in the next month will
change depending on the number of days in the previous month.

This changes QgsTemporalNavigationObject to take the time step and time
step unit as separate arguments. The settings in
QgsTemporalUtils::exportAnimation are left unchanged, because in this case
the user interface is already set up to use an interval.

If the time step has a fractional value, the frame duration is calculated
using a QgsInterval as before. If it has an integer value, the calculation
uses QDateTime to advance by the specified time step instead. So a value of
1.5 months results in a frame duration of 45 days, but a value of 1 month
will result in a duration that depends on the length of the current month.

Fixes #37829.
2021-01-06 13:28:16 +10:00
Nyall Dawson
3ca2137f82 Improve QgsSvgCache documentation, add note about origin of QPictures
returned by svgAsPicture
2021-01-06 09:02:53 +10:00
Nyall Dawson
bb05c3bcfb Allow plugins to set control image path for QgsRenderChecker, so that
they can reuse this class for plugin specific tests
2021-01-06 04:44:59 +10:00
Nyall Dawson
b740bf201a [processing] Fix exception when calling "Select from Files" in batch mode
on a file parameter

Fixes #40705
2021-01-05 08:32:10 +10:00
Nyall Dawson
923af4e833 Older sip versions DO require custom conversion code! 2021-01-04 13:05:54 +01:00
Nyall Dawson
30084f61a8 Fix identify tool not finding points when using a single point click
and map crs != layer crs
2021-01-04 13:05:54 +01:00
Nyall Dawson
c69b80453c No need for custom conversion code when QVariantMap type is returned 2021-01-04 13:05:54 +01:00
Nyall Dawson
8f63af56a9 Use QVariantMap instead of QMap<QString, QVariant> 2021-01-04 13:05:54 +01:00
Nyall Dawson
72065310f5 Dox++ 2021-01-04 13:52:18 +10:00
Nyall Dawson
16c4bead0c Fix dox warning 2021-01-04 13:52:18 +10:00
Nyall Dawson
7fba697bf3 [FEATURE] New "Merged feature" renderer for polygon and line layers
This renderer merges (or unions/dissolves) the line or polygon features
from a layer prior to rendering them. It's useful for rendering
a polygon layer with overlapping features as one single "coverage" feature,
or a line layer consisting of many smaller component line features
using a regularly spaced marker line or similar.

Internally, this just moves the guts of the existing inverted polygons
renderer to a new base class, as that renderer already had an option
to merge features prior to rendering. Basically it just exposes a new
renderer to users which is the inverted polygon renderer without
the inversion step!
2021-01-04 13:52:18 +10:00
Belgacem
8c72321509 sipify identify function in dataprovider 2021-01-04 10:20:04 +10:00
Belgacem
72d9eeeb0a remove SIP_SKIP and qDebug() 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
8ec26000b4 remove layer and elevation properties 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
ef9d2727a6 make single click identify work 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
839636635b add docs 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
6b7be9c909 fix spelling 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
8178add788 Address Nyall suggestions 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
9358c9bd3e change to variant and remove QgsPointCloudIdentifyResults 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
2d274af355 Add classified renderer filtering behaviour 2021-01-04 10:20:04 +10:00
Denis Rouzaud
0cae2bea6a add missing doxymentation 2021-01-03 20:33:27 +01:00
Denis Rouzaud
eb46defa6c fix bindings 2021-01-03 20:16:56 +01:00
Denis Rouzaud
2cc632ee5d follow up QVariant 2021-01-03 20:16:56 +01:00
Denis Rouzaud
f77bb217e2 use QVariantMap instead of QgsStringMap for symbol layer properties 2021-01-03 20:16:56 +01:00
Harrissou Sant-anna
a1ee2ffc96 Fix typo 2021-01-02 08:06:13 +10:00
Nyall Dawson
a9c80e5740 Code shuffle
Move vector, project and network related core .cpp/.h files into
dedicated subdirectories.

An attempt to organise src/core better to make things easier to find.
2020-12-29 11:38:11 +10:00
Matthias Kuhn
fcd98861bd
Merge pull request #40745 from m-kuhn/qgsmaplayer_project
Add QgsMapLayer::project() utility method
2020-12-28 23:31:08 +01:00
Mathieu Pellerin
14136a15cb
[ui] Insure color/value changes in the colormap tree are reflected in the color ramp button of the color ramp shader widget (#40671) 2020-12-28 20:01:48 +07:00
Nyall Dawson
d2fb33e0b7 Add API to allow extra feature renderers to be created for a vector
layer, so that these renderers are always drawn either above or
below the normal layer renderer

This allows programatic creation of extra styling for a vector layer,
e.g. to overlay custom markers or outlines on features (such as
highlighting "good" or "bad" features), without messing with
any user-created symbology for the layer.
2020-12-28 04:21:04 +10:00
Nyall Dawson
39560eaab2 Add interface class for objects which can generate a feature renderer for vector layers 2020-12-28 04:21:04 +10:00
Matthias Kuhn
171911a669
Merge pull request #40755 from m-kuhn/non_virtual_qgsproperty
QgsProperty is not virtual
2020-12-27 08:39:56 +01:00
Matthias Kuhn
d33cb6dc4f QgsProperty is not virtual 2020-12-25 08:41:33 +01:00
Matthias Kuhn
af709503d5 Cache svg paths
Rebuilding them for each access from the settings is costly
2020-12-24 10:13:12 +07:00
Matthias Kuhn
73e385fd31 Improve docstring 2020-12-23 18:10:00 +01:00
Alessandro Pasotti
e520af3c01
Merge pull request #40726 from elpaso/connections-api-results-iterator
Connections API: execSql iterator
2020-12-23 13:18:44 +01:00
Nyall Dawson
890491976c Replace ArcGIS REST data source manager list with a view based on the browser model
This has MANY benefits:
- Shows the merged feature service/map service view we use in browser
- Avoids the HUGE main thread ui hang when connecting to servers with
many layers (could be 20 mins+ for some services)
- Avoids bombing out and showing incomplete lists when a server reports
an error when connecting to any of the services it advertises (happens
often)
2020-12-23 16:10:05 +10:00
Loïc Bartoletti
817744928c
Fix circle by three tangents parrallel when two are parallels (#40702)
* add new method to solve QgsCircle::from3tangents where 2 tangents are parallels
2020-12-23 09:00:15 +10:00
Matthias Kuhn
b4f14d5df5 Fix docstring 2020-12-23 05:40:35 +10:00
Alessandro Pasotti
d5b65902c5 hasNextRow 2020-12-22 19:32:33 +01:00
Matthias Kuhn
6ddb13ac35 Get access to project from map layer 2020-12-22 17:00:26 +01:00
Alessandro Pasotti
0978ff22f9 Connections API: execSql iterator 2020-12-22 16:53:42 +01:00
Juergen E. Fischer
b28d820b0c fix typos 2020-12-22 00:03:34 +01:00