207 Commits

Author SHA1 Message Date
Denis Rouzaud
fe4e9b5ff8
remove outdated sip files (#52848) 2023-04-23 08:50:22 +02:00
uclaros
f896513aab Add virtual point cloud provider 2023-04-13 09:57:53 +02:00
Nyall Dawson
f9c3da1e06 Move unit enums to Qgis, promote to enum class 2023-02-19 13:29:06 +10:00
Vincent Cloarec
3ca858af66
Global map terrain shading (#51535)
* QgsShadingRendering and pipe to render global elevation map

* gdal utils with datatype and resampling method enum

* raster layer elevation map

* optimize raster elevation map with rotation

* handle  no data value in the map elevation raster pipe

* mesh layer and some little fixes

* fix nodata and hillshading z factor

* render shading on layout

* activate/deactivate the shading from ui

* shading only for layer that have elevation

* apply Z scale and offset of layer elevation properties

* ui settings

* allow elevation from point cloud even edl is deactivate for pointcloud

* fix ui

* sipify

* Shading renderer widget in styling panel

* icone for shading renderer settings widget

* two methods to combin elevation

* rewording

* remove check box at the bottom of canvas

* use band of elevation properties

* fix styling pannel

* render shading in layout

* keep EDL point cloud shading individually

* add shading rendering tests

* add missing code for local EDL for point cloud

* shading inactive by default

* rework raster layer resampling

* improve nodata in elevation map

* don't allow elevation map with != size to be combined

* remove EDL from point cloud

* renaming

* sipify

* colorize tests

* renaming

* RGB32

* renaming leftover

* some ui fixes

* fix border for EDL alg

* fix EDL closed next to nodata value

* fix first shading when activated

* renaming and typo

* fixes for doc, doxygen, indentation and spelling

* remove leftover member

* fix clang-tidy

* fix edl tests

* fix dll export

* minor fixes

* adapt images of tests

* fix narrowing

* fix indentation

* sipify

* WIP

* minor ui changes
2023-01-26 15:02:16 +01:00
uclaros
1a7d160a50 add export to CSV files 2022-09-06 09:57:54 +10:00
uclaros
fe22b4c7f5 address review 2022-09-02 14:28:07 -07:00
uclaros
cf7137d218 use enum for supported formats 2022-09-02 14:28:07 -07:00
uclaros
3c426b274f also export to uncompressed las files 2022-09-02 14:28:07 -07:00
uclaros
4c39f178ad added filter by geometry / filter by layer support 2022-09-02 14:28:07 -07:00
Martin Dobias
e6da9ac607 Bring back some Python methods to make the test in Python work again 2022-09-02 07:52:22 -07:00
Martin Dobias
ec36709bfe Address reviews from Stefanos and Nyall 2022-09-02 07:52:22 -07:00
Martin Dobias
18b3bdd139 Refactor elevation map related code to a new class QgsElevationMap 2022-09-02 07:52:22 -07:00
Martin Dobias
8f933496b6 Eye dome lighting code fixes
- make it independent on the current view's Z range
- simplify scaling code
- reverse Z handling (higher Z value == closer to "camera")
- remove unused API functions and member variables
2022-09-02 07:52:22 -07:00
NEDJIMAbelgacem
83cf5fab0b fix layout tests 2022-09-02 07:52:22 -07:00
NEDJIMAbelgacem
789a83cd37 address reviews and fix docs 2022-09-02 07:52:22 -07:00
NEDJIMAbelgacem
5b6ba3e80a Revert to RGBA elevation 2022-09-02 07:52:22 -07:00
NEDJIMAbelgacem
3eedcf0d8f address reviews 2022-09-02 07:52:22 -07:00
NEDJIMAbelgacem
5ccb83b5c6 switch to using grayscale image and fix the default draw order rendering 2022-09-02 07:52:22 -07:00
NEDJIMAbelgacem
f4830334cf initial implementation 2022-09-02 07:52:22 -07:00
Stefanos Natsis
fb97c10d00
Export pointcloud layers (#49280)
* PointCloudLayerExporter class

* set points limit

* saveas dialog

* qickndirty task

* wip

* add pdal files

* transform context

* add getters

* try to use some subclasses

* use nested classes

* don't default layername

* limit supported formats

* error reporting

* limit formats in gui too

* format filters and source/target crs

* use default infinite extent

* set pdal crs

* add pdrf but keep 3 for now

* properly handle LAZ attributes

* catch coordinate transform exceptions

* use default destructor, fix leak, docs

* trim includes, fix typos

* use qgsspinboxes, add points limit to the gui

* fix limit exporting logic

* avoid auto

* fix builds

* don't reuse lastVectorFormat setting

* Rework layer name handling

* Rage against the elevation

* invert attribute activation logic

* use wkt for laz srs

* use original offset/scale if not reprojecting

* move created memory layer to main thread when done

* allways add memory layer to map

* oops

* properly handle existing vector files

* don't add layer if cancelled

* create the memory layer on the main thread

* remove colon

* remove duplicate code and avoid crashing on mesh and vectortiles

* fix leak

* handle case blunder

* address review
2022-08-31 15:46:16 +02:00
Nyall Dawson
6e5a99d332 Sipify 2022-06-03 13:13:43 +10:00
Nedjima Belgacem
8054467031
Save calculated statistics of a COPC file back into the dataset as an EVLR record (#48673)
* Implement saving stats as an EVLR

* Fix layout tests

* don't save statistics unless copc was generated by pdal

* Address Martin reviews

* Address reviews

* Only read stats EVLR and do not store count

* merge cleanup

* Address reviews
2022-06-02 19:24:03 +02:00
NEDJIMAbelgacem
904a987c42 fix python test 2022-05-31 15:47:34 +01:00
NEDJIMAbelgacem
c5ac600dad - Remove useless functions
- Remove emit QgsTask::taskTerminated
2022-05-30 13:45:58 +01:00
NEDJIMAbelgacem
e2bf3809f7 Various fixes
- Remove waiting for task to finish in ~QgsPointCloudLayer
- Fix failing ept provider test when maximum threads is set to 1.
-  make PointCloudStatisticsCalculationState into enum class
- move AttributeStatistics outside QgsPointCloudStatistics
2022-05-27 03:02:12 +01:00
NEDJIMAbelgacem
b5e2887a88 fix test 2022-05-24 10:04:33 +02:00
uclaros
79738c8e78 classify pointclouds by attribute 2022-05-13 19:17:13 +02:00
NEDJIMAbelgacem
720008a3de fix test 2022-05-10 19:19:24 +01:00
NEDJIMAbelgacem
a6e28b4ce1 fix test 2022-05-10 10:08:37 +01:00
NEDJIMAbelgacem
dc446c0dad try to fix QgsPointCloudLayerProfileGenerator test 2022-05-09 17:35:26 +01:00
NEDJIMAbelgacem
e9fff46db4 Merge branch 'master' into point-cloud-stats-calculator 2022-05-09 15:56:38 +01:00
NEDJIMAbelgacem
7300681cc2 Avoid use of statistical summary 2022-05-09 13:26:19 +01:00
NEDJIMAbelgacem
0404cd1115 address reviews 2022-05-09 10:39:23 +01:00
NEDJIMAbelgacem
1ba060cb82 Change to using statistics class and fix SIP 2022-05-06 10:28:09 +01:00
Nyall Dawson
ca710d64e0 Implement identify support for point cloud results 2022-05-06 08:58:41 +10: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
Nyall Dawson
c9678be608 Simplify api 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
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
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
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
NEDJIMAbelgacem
cc5a7d3d62 big code refactor 2022-04-28 18:38:49 +01:00
NEDJIMAbelgacem
f33f14843e Refactoring and some fixes 2022-04-27 07:49:15 +01:00
NEDJIMAbelgacem
b02af16183 initial implementation 2022-04-22 07:32:28 +01:00