Skip to content

Commit 2cbd6f0

Browse files
author
Éric Lemoine
committed
Add a PC_Uncompress LAZ SQL test
1 parent 7d17b5e commit 2cbd6f0

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

pgsql/expected/pointcloud-laz.out

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ SELECT Sum(PC_PatchMin(pa,'x')) FROM pa_test_laz;
113113
0.12
114114
(1 row)
115115

116+
SELECT PC_Uncompress(pa) FROM pa_test_laz WHERE id=1;
117+
pc_uncompress
118+
------------------------------------------------------------------------------------
119+
0105000000000000000200000002000000030000000500000006000200000003000000050000000800
120+
(1 row)
121+
116122
DELETE FROM pa_test_laz;
117123
INSERT INTO pa_test_laz (pa)
118124
SELECT PC_Patch(PC_MakePoint(5, ARRAY[x,y,z,intensity]))

pgsql/sql/pointcloud-laz.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ SELECT Sum(PC_MemSize(pa)) FROM pa_test_laz;
6161
SELECT Sum(PC_PatchMax(pa,'x')) FROM pa_test_laz;
6262
SELECT Sum(PC_PatchMin(pa,'x')) FROM pa_test_laz;
6363

64+
SELECT PC_Uncompress(pa) FROM pa_test_laz WHERE id=1;
65+
6466
DELETE FROM pa_test_laz;
6567
INSERT INTO pa_test_laz (pa)
6668
SELECT PC_Patch(PC_MakePoint(5, ARRAY[x,y,z,intensity]))

0 commit comments

Comments
 (0)