194 Commits

Author SHA1 Message Date
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
Nyall Dawson
9a99ed8800 Don't show vector layers with no interesting elevation properties
set by default in newly created elevation profiles

Fixes #48286
2022-04-22 13:07:16 +10:00
Nyall Dawson
1fc20cb026 Show elevation specific tooltips 2022-04-22 13:07:16 +10:00
Nyall Dawson
8ee20464a0 Ensure that elevation properties are copied whenever a layer is cloned 2022-04-07 19:22:19 +10:00
uclaros
b61bc22885 test renderer properties, not actual rendering 2022-04-04 02:57:00 -07:00
uclaros
c16e9a204c Sync pointcloud layer's 3d renderer style with 2d renderer 2022-04-04 02:57:00 -07:00
uclaros
74fc47458b Report untwine errors to the user 2022-04-01 02:20:25 -07:00
Martin Dobias
9edf55ae41
Merge pull request #47257 from uclaros/filtering-pointclouds
Add support for pointcloud filtering
2022-03-11 13:13:48 -08:00
uclaros
74030fdc1c skipping sipping 2022-03-11 15:34:35 +02:00
uclaros
749d7937f4 remove non-implemented enums 2022-03-10 21:52:15 +02:00
uclaros
6ba6338305 operator conversion handling 2022-03-09 16:42:54 +02:00
uclaros
14fe9b85b3 added QgsPointCloudAttribute::convertValueToDouble() 2022-03-09 14:10:22 +02:00
uclaros
d9c524fce7 refactor extending attribute collections 2022-03-09 13:26:37 +02:00
uclaros
1088c9fa4a remove methods using QgsExpression as parameter 2022-03-09 12:14:40 +02:00