Skip to content

Commit

Permalink
lasio ext and new test
Browse files Browse the repository at this point in the history
  • Loading branch information
dehann committed Sep 22, 2023
1 parent a120526 commit 5d6ad66
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion ext/CaesarLasIOExt.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
module CaesarLasIOExt

using LasIO
using FileIO
using Dates
using StaticArrays

import Caesar._PCL as _PCL

import Caesar: loadLAS, saveLLAS
import Caesar: loadLAS, saveLAS

include("services/LasIOSupport.jl")

Expand Down
6 changes: 3 additions & 3 deletions ext/services/LasIOSupport.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ function loadLAS(
RGB(pnt.red, pnt.green, pnt.blue)
end

colored_points = PointXYZ.(colors, pts)
return PointCloud(;points=colored_points, width=UInt32(length(colored_points)), height=UInt32(1))
colored_points = _PCL.PointXYZ.(colors, pts)
return _PCL.PointCloud(;points=colored_points, width=UInt32(length(colored_points)), height=UInt32(1))
end


# TODO, make save LAS
function saveLAS(
filepath::Union{<:AbstractString, <:Stream},
pc::PointCloud;
pc::_PCL.PointCloud;
scale=1000
)

Expand Down

0 comments on commit 5d6ad66

Please sign in to comment.