-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
574ca49
commit 2f922d4
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import numpy as np | ||
|
||
from lidro.create_virtual_point.pointcloud.utils_pdal import ( | ||
get_bounds_from_las, | ||
read_las_file, | ||
) | ||
|
||
LAS_FILE = "./data/pointcloud/LHD_FXX_0706_6627_PTS_C_LAMB93_IGN69_TEST.las" | ||
|
||
# Expected : ([minx,maxx],[miny,maxy]) | ||
BoundsExpected_FILE = ([706044.94, 706292.25], [6626159, 6626324]) | ||
|
||
|
||
def test_read_las_file(): | ||
pts = read_las_file(LAS_FILE) | ||
assert isinstance(pts, np.ndarray) # type is array | ||
|
||
|
||
def test_get_bounds_from_las(): | ||
bounds = get_bounds_from_las(LAS_FILE) | ||
|
||
assert isinstance(bounds, tuple) | ||
assert bounds == BoundsExpected_FILE |