21044 Commits

Author SHA1 Message Date
NEDJIMAbelgacem
1ba060cb82 Change to using statistics class and fix SIP 2022-05-06 10:28:09 +01:00
NEDJIMAbelgacem
46c2afdff2 - Add a class for storing statistics
- Add classification attribute function
- Refactoring
2022-05-05 11:40:30 +01:00
Nedjima Belgacem
a0ab353aba
Merge branch 'master' into point-cloud-stats-calculator 2022-05-03 20:39:20 +01:00
NEDJIMAbelgacem
ac2f073169 Address reviews 2022-05-03 13:25:05 +01:00
Samweli
998c58dff1 made canvas methods in source provider widget virtual 2022-05-03 15:58:19 +10:00
Samweli
e38f3996f7 made canvas set and get function non pure virtual functions, include tests for encode/decode uri functions in wcs
and minor cleans and code tweaks as suggested in the recent review.
2022-05-03 15:58:19 +10:00
Samweli
8846a1a265 refomartted updated provider files 2022-05-03 15:58:19 +10:00
Samweli
9fc2f58e71 updated the owssourcewidget to only update ows layers bbox 2022-05-03 15:58:19 +10:00
Samweli
d05e628ea8 set source uri when source widget is available 2022-05-03 15:58:19 +10:00
Samweli
b6f19aaffb updated prepareExtent call 2022-05-03 15:58:19 +10:00
Samweli
66503f31be removed qgsowssourcewidget from sip, updated pointer variables in qgsowssourceselect 2022-05-03 15:58:19 +10:00
Samweli
06f9f71dc8 moved prepareExtent() to private 2022-05-03 15:58:19 +10:00
Samweli
a59e4680f6 removed mapCanvasChanged() signal and made setMapCanvas virtual in the QgsAbstractDataSourceWidget 2022-05-03 15:58:19 +10:00
Samweli
5e7e0ae3d3 updated the raster layer properties dialog and wcs provider to accommodate adding an ows provider source widget 2022-05-03 15:58:19 +10:00
Samweli
4a1f27428d enabled passing a map canvas to a provider source widget 2022-05-03 15:58:19 +10:00
Samweli
b44a62863e added ows source widget 2022-05-03 15:58:19 +10:00
Samweli
445ac09cb0 updated wcs provider to use user specified bounding box when it is available 2022-05-03 15:58:19 +10:00
Samweli
4104a62f85 change state of the map canvas to non-const so it can be used in provider dialogs spatial extent input widgets 2022-05-03 15:58:19 +10:00
Nyall Dawson
e163361da9 Add option to show markers over continuous surface plot 2022-05-03 12:15:02 +10:00
Nyall Dawson
826cbe37d6 [feature] Add an "interpretation" option for vector elevation profiles
Choices are "individual features" (the default behavior) or "continuous
surface". The new Continuous Surface option is designed for vector
layers which represent a continuous elevation surface, e.g contour
lines or surveyed elevation points. When selected, the elevation
chart will be rendered as a surface instead of separate features
by joining the sampled elevation results into a continuous line.

There's also the same option exposed as for raster and mesh layers
where the appearance can be toggled from a single line to a "fill
below" symbol.

Fixes #48341
2022-05-03 12:15:02 +10:00
Alexander Bruy
7743cf4641 fix tests 2022-05-02 15:55:01 +10:00
Alexander Bruy
34a20f8b2d add tests 2022-05-02 15:55:01 +10:00
Nyall Dawson
4907eb2652 Don't reset plot extent so often
Be more picky about when we force a zoom full in the elevation plot,
so that we aren't zooming out when a user makes a change like
increasing the distance tolerance or nudging the curve.
2022-05-02 12:33:19 +10:00
Nyall Dawson
eeb444948f Add mechanism for python clients to setup custom QNetworkReply
preprocessors

Since it's not possible to overwrite
QgsNetworkAccessManager::createRequest, the normal Qt approach for
adding custom handling for replies is not possible. This new API
adds a QgsNetworkAccessManager.setReplyPreprocessor() method
which allows clients to add a custom reply preprocessor for implementing
their own logic for replies.

For example:

    def _on_ready_read(reply):
        print(reply.peek(reply.bytesAvailable()))

    def _my_preprocessor(request, reply):
        if reply.operation() == QNetworkAccessManager.PutOperation:
            reply.readyRead.connect(partial(_on_ready_read, reply))

    QgsNetworkAccessManager.setReplyPreprocessor(_my_preprocessor)

Fixes #48169
2022-05-02 12:31:42 +10:00
Nyall Dawson
c9678be608 Simplify api 2022-05-01 09:13:08 +10:00
Nyall Dawson
e415cad690 Avoid unnecessary layer redraw 2022-05-01 09:13:08 +10:00
Nyall Dawson
6ca9c4bdc1 Clearer name for signal 2022-05-01 09:13:08 +10:00
Nyall Dawson
2c9e37d4ba Add setting to respect point cloud coloring in profile plots 2022-05-01 09:13:08 +10:00
Nyall Dawson
51a178279c API for rendering point cloud profiles using renderer colors 2022-05-01 09:13:08 +10:00
Nyall Dawson
f0f7ae54a6 Enum class 2022-04-29 19:58:21 +10:00
Nyall Dawson
e6b65767cf Use different snap tolerances when snapping to points vs snapping
to continuous elevation surfaces

When snapping to a surface we want to be very "grabby" in the height
axis but ungrabby in the distance axis. For points we should be equally
grabby on either axis.
2022-04-29 19:58:21 +10:00
Nyall Dawson
0f13138e0c Fix typo 2022-04-29 19:58:21 +10:00
Nyall Dawson
a9e1f1125f Use DPI directly instead of scale factor 2022-04-29 19:58:21 +10:00
Nyall Dawson
6811b41a9c Add opacity by distance from curve effect 2022-04-29 19:58:21 +10:00
Nyall Dawson
548f3df629 Add elevation profile support for point cloud layers 2022-04-29 19:58:21 +10:00
Nyall Dawson
bad241ead2 Ensure that results from final plot area are always shown in plot, even when
a job was already in progress when the plot area was changed
2022-04-29 19:58:21 +10:00
Nyall Dawson
81680ea15b Add profile related settings to point cloud elevation properties 2022-04-29 19:58:21 +10:00
Nyall Dawson
c35d17b6e4 Move useful point cloud renderer enums to Qgis namespace 2022-04-29 19:58:21 +10:00
Nyall Dawson
77052c6473 Add map units per pixel to QgsProfileGenerationContext 2022-04-29 19:58:21 +10:00
NEDJIMAbelgacem
ba0deaaa76 fix unit tests 2022-04-29 07:28:22 +01:00
NEDJIMAbelgacem
85499ed235 - Enable estimated statistics warning
- Fix statistics calculation
2022-04-29 06:24:46 +01:00
Julien Cabieces
fb50f69e2b other const methods 2022-04-29 08:21:47 +10:00
Julien Cabieces
012b6a46db constify methods 2022-04-29 08:21:47 +10:00
Denis Rouzaud
82da43371d avoid API break by renaming arg 2022-04-29 07:57:25 +10:00
Denis Rouzaud
3c0ecd38e8 move enum to Qgis + remove commented code 2022-04-29 07:57:25 +10:00
Denis Rouzaud
d5cfb7e0f6 fix tests 2022-04-29 07:57:25 +10:00
Denis Rouzaud
6dd66759cd sipify 2022-04-29 07:57:25 +10:00
NEDJIMAbelgacem
cc5a7d3d62 big code refactor 2022-04-28 18:38:49 +01:00
Alessandro Pasotti
041e18a85c
Merge pull request #48107 from elpaso/db_logger_2
Implementation of QEP: Add SQL Logging in the debugging/development panel
2022-04-28 10:11:31 +02:00
Nyall Dawson
5fb4f656c1 Fix doxygen warning 2022-04-28 13:54:47 +10:00