Skip to content

Commit b348e96

Browse files
committed
Add test LAS and PDAL script
1 parent fe724c6 commit b348e96

File tree

5 files changed

+20
-1
lines changed

5 files changed

+20
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ if(CMAKE_COMPILER_IS_GNUCXX)
3737
endif()
3838

3939
include(CTest)
40-
add_subdirectory("tests/pdal/capi")
40+
add_subdirectory("tests/data")
41+
add_subdirectory("tests/pdal/capi")

tests/data/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
set(PIPELINES
2+
stats.json
3+
)
4+
5+
foreach(PIPELINE ${PIPELINES})
6+
configure_file(${PIPELINE}.in ${CMAKE_BINARY_DIR}/data/${PIPELINE})
7+
endforeach()
8+

tests/data/las/1.2-with-color.las

35.6 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PROJCS["NAD_1983_Oregon_Statewide_Lambert_Feet_Intl",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["False_Easting",1312335.958005249],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-120.5],PARAMETER["Standard_Parallel_1",43.0],PARAMETER["Standard_Parallel_2",45.5],PARAMETER["Latitude_Of_Origin",41.75],UNIT["Foot",0.3048]]

tests/data/stats.json.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"pipeline":[
3+
"@CMAKE_SOURCE_DIR@/test/data/las/1.2-with-color.las",
4+
{
5+
"type":"filters.stats"
6+
},
7+
"@CMAKE_SOURCE_DIR@/test/temp/pdal-stats.las"
8+
]
9+
}

0 commit comments

Comments
 (0)