Skip to content

Commit 5d6ad66

Browse files
committed
lasio ext and new test
1 parent a120526 commit 5d6ad66

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

ext/CaesarLasIOExt.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
module CaesarLasIOExt
22

33
using LasIO
4+
using FileIO
5+
using Dates
6+
using StaticArrays
7+
48
import Caesar._PCL as _PCL
59

6-
import Caesar: loadLAS, saveLLAS
10+
import Caesar: loadLAS, saveLAS
711

812
include("services/LasIOSupport.jl")
913

ext/services/LasIOSupport.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ function loadLAS(
2525
RGB(pnt.red, pnt.green, pnt.blue)
2626
end
2727

28-
colored_points = PointXYZ.(colors, pts)
29-
return PointCloud(;points=colored_points, width=UInt32(length(colored_points)), height=UInt32(1))
28+
colored_points = _PCL.PointXYZ.(colors, pts)
29+
return _PCL.PointCloud(;points=colored_points, width=UInt32(length(colored_points)), height=UInt32(1))
3030
end
3131

3232

3333
# TODO, make save LAS
3434
function saveLAS(
3535
filepath::Union{<:AbstractString, <:Stream},
36-
pc::PointCloud;
36+
pc::_PCL.PointCloud;
3737
scale=1000
3838
)
3939

0 commit comments

Comments
 (0)