2020-11-04 16:33:36 +00:00
|
|
|
diff -rupN --no-dereference PDAL-2.2.0-src/CMakeLists.txt PDAL-2.2.0-src-new/CMakeLists.txt
|
2020-10-18 19:21:13 +00:00
|
|
|
--- PDAL-2.2.0-src/CMakeLists.txt 2020-09-09 17:14:18.000000000 +0200
|
2020-11-04 16:33:36 +00:00
|
|
|
+++ PDAL-2.2.0-src-new/CMakeLists.txt 2020-10-26 17:50:56.100173211 +0100
|
2020-10-18 19:21:13 +00:00
|
|
|
@@ -67,7 +67,6 @@ else()
|
2020-05-28 17:31:19 +00:00
|
|
|
endif()
|
|
|
|
set(PDAL_LIB_NAME pdalcpp)
|
|
|
|
set(PDAL_UTIL_LIB_NAME pdal_util)
|
|
|
|
-set(PDAL_BOOST_LIB_NAME pdal_boost)
|
|
|
|
set(PDAL_KAZHDAN_LIB_NAME pdal_kazhdan)
|
|
|
|
set(PDAL_TEST_SUPPORT_OBJS pdal_test_support)
|
|
|
|
|
2020-10-18 19:21:13 +00:00
|
|
|
@@ -141,6 +140,9 @@ include(${PDAL_CMAKE_DIR}/arbiter.cmake)
|
2020-05-28 17:31:19 +00:00
|
|
|
include(${PDAL_CMAKE_DIR}/nlohmann.cmake)
|
|
|
|
include(${PDAL_CMAKE_DIR}/openssl.cmake) # Optional
|
|
|
|
|
|
|
|
+find_package(PkgConfig REQUIRED)
|
|
|
|
+PKG_CHECK_MODULES(EIGEN REQUIRED eigen3)
|
|
|
|
+
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# generate the pdal_features.hpp header
|
|
|
|
#------------------------------------------------------------------------------
|
2020-10-18 19:21:13 +00:00
|
|
|
@@ -179,13 +181,10 @@ endif()
|
2020-05-28 17:31:19 +00:00
|
|
|
|
|
|
|
add_subdirectory(plugins)
|
|
|
|
|
|
|
|
-#include_directories(vendor/pdalboost)
|
|
|
|
if (WITH_TESTS)
|
|
|
|
- include (${PDAL_CMAKE_DIR}/gtest.cmake)
|
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|
|
|
|
add_subdirectory(dimbuilder)
|
|
|
|
-add_subdirectory(vendor/pdalboost)
|
|
|
|
add_subdirectory(vendor/arbiter)
|
|
|
|
add_subdirectory(vendor/kazhdan)
|
|
|
|
add_subdirectory(pdal/util)
|
2020-10-18 19:21:13 +00:00
|
|
|
@@ -267,13 +266,12 @@ target_include_directories(${PDAL_BASE_L
|
2020-05-28 17:31:19 +00:00
|
|
|
${ROOT_DIR}
|
|
|
|
${PROJECT_BINARY_DIR}/include
|
|
|
|
${PDAL_VENDOR_DIR}
|
|
|
|
- ${PDAL_VENDOR_DIR}/eigen
|
|
|
|
- ${PDAL_VENDOR_DIR}/pdalboost
|
|
|
|
${LIBXML2_INCLUDE_DIR}
|
|
|
|
${ZSTD_INCLUDE_DIRS}
|
|
|
|
${NLOHMANN_INCLUDE_DIR}
|
|
|
|
${GDAL_INCLUDE_DIR}
|
|
|
|
${LASZIP_INCLUDE_DIR}
|
2020-10-18 19:21:13 +00:00
|
|
|
+ ${EIGEN_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
target_link_libraries(${PDAL_BASE_LIB_NAME}
|
|
|
|
PRIVATE
|
2020-11-04 16:33:36 +00:00
|
|
|
diff -rupN --no-dereference PDAL-2.2.0-src/pdal/util/CMakeLists.txt PDAL-2.2.0-src-new/pdal/util/CMakeLists.txt
|
|
|
|
--- PDAL-2.2.0-src/pdal/util/CMakeLists.txt 2020-09-09 17:14:16.000000000 +0200
|
|
|
|
+++ PDAL-2.2.0-src-new/pdal/util/CMakeLists.txt 2020-10-26 17:50:56.100173211 +0100
|
|
|
|
@@ -34,7 +34,7 @@ PDAL_ADD_FREE_LIBRARY(${PDAL_UTIL_LIB_NA
|
2020-05-28 17:31:19 +00:00
|
|
|
target_link_libraries(${PDAL_UTIL_LIB_NAME}
|
|
|
|
PRIVATE
|
|
|
|
${BACKTRACE_LIBRARIES}
|
|
|
|
- ${PDAL_BOOST_LIB_NAME}
|
|
|
|
+ boost_filesystem
|
|
|
|
${CMAKE_DL_LIBS}
|
|
|
|
)
|
|
|
|
target_include_directories(${PDAL_UTIL_LIB_NAME} PRIVATE
|
2020-11-04 16:33:36 +00:00
|
|
|
diff -rupN --no-dereference PDAL-2.2.0-src/pdal/util/FileUtils.cpp PDAL-2.2.0-src-new/pdal/util/FileUtils.cpp
|
|
|
|
--- PDAL-2.2.0-src/pdal/util/FileUtils.cpp 2020-09-09 17:14:16.000000000 +0200
|
|
|
|
+++ PDAL-2.2.0-src-new/pdal/util/FileUtils.cpp 2020-10-26 17:50:56.100173211 +0100
|
|
|
|
@@ -151,25 +151,25 @@ std::ostream *createFile(std::string con
|
2020-05-28 17:31:19 +00:00
|
|
|
bool directoryExists(const std::string& dirname)
|
|
|
|
{
|
|
|
|
//ABELL - Seems we should be calling is_directory
|
|
|
|
- return pdalboost::filesystem::exists(toNative(dirname));
|
|
|
|
+ return boost::filesystem::exists(toNative(dirname));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool createDirectory(const std::string& dirname)
|
|
|
|
{
|
|
|
|
- return pdalboost::filesystem::create_directory(toNative(dirname));
|
|
|
|
+ return boost::filesystem::create_directory(toNative(dirname));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool createDirectories(const std::string& dirname)
|
|
|
|
{
|
|
|
|
- return pdalboost::filesystem::create_directories(toNative(dirname));
|
|
|
|
+ return boost::filesystem::create_directories(toNative(dirname));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void deleteDirectory(const std::string& dirname)
|
|
|
|
{
|
|
|
|
- pdalboost::filesystem::remove_all(toNative(dirname));
|
|
|
|
+ boost::filesystem::remove_all(toNative(dirname));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-11-04 16:33:36 +00:00
|
|
|
@@ -179,15 +179,15 @@ std::vector<std::string> directoryList(c
|
2020-05-28 17:31:19 +00:00
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
- pdalboost::filesystem::directory_iterator it(dir);
|
|
|
|
- pdalboost::filesystem::directory_iterator end;
|
|
|
|
+ boost::filesystem::directory_iterator it(dir);
|
|
|
|
+ boost::filesystem::directory_iterator end;
|
|
|
|
while (it != end)
|
|
|
|
{
|
|
|
|
files.push_back(it->path().string());
|
|
|
|
it++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- catch (pdalboost::filesystem::filesystem_error&)
|
|
|
|
+ catch (boost::filesystem::filesystem_error&)
|
|
|
|
{
|
|
|
|
files.clear();
|
|
|
|
}
|
2020-11-04 16:33:36 +00:00
|
|
|
@@ -227,13 +227,13 @@ void closeFile(std::istream* in)
|
2020-05-28 17:31:19 +00:00
|
|
|
|
|
|
|
bool deleteFile(const std::string& file)
|
|
|
|
{
|
|
|
|
- return pdalboost::filesystem::remove(toNative(file));
|
|
|
|
+ return boost::filesystem::remove(toNative(file));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void renameFile(const std::string& dest, const std::string& src)
|
|
|
|
{
|
|
|
|
- pdalboost::filesystem::rename(toNative(src), toNative(dest));
|
|
|
|
+ boost::filesystem::rename(toNative(src), toNative(dest));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-11-04 16:33:36 +00:00
|
|
|
@@ -244,9 +244,9 @@ bool fileExists(const std::string& name)
|
2020-05-28 17:31:19 +00:00
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
- return pdalboost::filesystem::exists(toNative(name));
|
|
|
|
+ return boost::filesystem::exists(toNative(name));
|
|
|
|
}
|
|
|
|
- catch (pdalboost::filesystem::filesystem_error&)
|
|
|
|
+ catch (boost::filesystem::filesystem_error&)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
return false;
|
2020-11-04 16:33:36 +00:00
|
|
|
@@ -255,7 +255,7 @@ bool fileExists(const std::string& name)
|
2020-05-28 17:31:19 +00:00
|
|
|
|
|
|
|
uintmax_t fileSize(const std::string& file)
|
|
|
|
{
|
|
|
|
- return pdalboost::filesystem::file_size(toNative(file));
|
|
|
|
+ return boost::filesystem::file_size(toNative(file));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-11-04 16:33:36 +00:00
|
|
|
@@ -276,7 +276,7 @@ std::string readFileIntoString(const std
|
2020-05-28 17:31:19 +00:00
|
|
|
|
|
|
|
std::string getcwd()
|
|
|
|
{
|
|
|
|
- const pdalboost::filesystem::path p = pdalboost::filesystem::current_path();
|
|
|
|
+ const boost::filesystem::path p = boost::filesystem::current_path();
|
|
|
|
return addTrailingSlash(p.string());
|
|
|
|
}
|
|
|
|
|
2020-11-04 16:33:36 +00:00
|
|
|
@@ -306,7 +306,7 @@ std::string toCanonicalPath(std::string
|
2020-05-28 17:31:19 +00:00
|
|
|
// otherwise, make it absolute (relative to current working dir) and return that
|
|
|
|
std::string toAbsolutePath(const std::string& filename)
|
|
|
|
{
|
|
|
|
- return pdalboost::filesystem::absolute(toNative(filename)).string();
|
|
|
|
+ return boost::filesystem::absolute(toNative(filename)).string();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-11-04 16:33:36 +00:00
|
|
|
@@ -318,7 +318,7 @@ std::string toAbsolutePath(const std::st
|
2020-05-28 17:31:19 +00:00
|
|
|
std::string toAbsolutePath(const std::string& filename, const std::string base)
|
|
|
|
{
|
|
|
|
const std::string newbase = toAbsolutePath(base);
|
|
|
|
- return pdalboost::filesystem::absolute(toNative(filename),
|
|
|
|
+ return boost::filesystem::absolute(toNative(filename),
|
|
|
|
toNative(newbase)).string();
|
|
|
|
}
|
|
|
|
|
2020-11-04 16:33:36 +00:00
|
|
|
@@ -341,8 +341,8 @@ std::string getFilename(const std::strin
|
2020-05-28 17:31:19 +00:00
|
|
|
// Get the directory part of a filename.
|
|
|
|
std::string getDirectory(const std::string& path)
|
|
|
|
{
|
|
|
|
- const pdalboost::filesystem::path dir =
|
|
|
|
- pdalboost::filesystem::path(toNative(path)).parent_path();
|
|
|
|
+ const boost::filesystem::path dir =
|
|
|
|
+ boost::filesystem::path(toNative(path)).parent_path();
|
|
|
|
return addTrailingSlash(dir.string());
|
|
|
|
}
|
|
|
|
|
2020-11-04 16:33:36 +00:00
|
|
|
@@ -363,13 +363,13 @@ std::string stem(const std::string& path
|
2020-05-28 17:31:19 +00:00
|
|
|
// Determine if the path represents a directory.
|
|
|
|
bool isDirectory(const std::string& path)
|
|
|
|
{
|
|
|
|
- return pdalboost::filesystem::is_directory(toNative(path));
|
|
|
|
+ return boost::filesystem::is_directory(toNative(path));
|
|
|
|
}
|
|
|
|
|
|
|
|
// Determine if the path is an absolute path
|
|
|
|
bool isAbsolutePath(const std::string& path)
|
|
|
|
{
|
|
|
|
- return pdalboost::filesystem::path(toNative(path)).is_absolute();
|
|
|
|
+ return boost::filesystem::path(toNative(path)).is_absolute();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-11-04 16:33:36 +00:00
|
|
|
diff -rupN --no-dereference PDAL-2.2.0-src/test/unit/CMakeLists.txt PDAL-2.2.0-src-new/test/unit/CMakeLists.txt
|
2020-10-18 19:21:13 +00:00
|
|
|
--- PDAL-2.2.0-src/test/unit/CMakeLists.txt 2020-09-09 17:14:17.000000000 +0200
|
2020-11-04 16:33:36 +00:00
|
|
|
+++ PDAL-2.2.0-src-new/test/unit/CMakeLists.txt 2020-10-26 17:50:56.100173211 +0100
|
2020-10-18 19:21:13 +00:00
|
|
|
@@ -34,7 +34,7 @@ PDAL_ADD_TEST(pdal_eigen_test
|
|
|
|
${PDAL_SRC_DIR}/private/MathUtils.cpp
|
|
|
|
|
2020-05-28 17:31:19 +00:00
|
|
|
INCLUDES
|
|
|
|
- ${PDAL_VENDOR_DIR}/eigen
|
|
|
|
+ ${EIGEN_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
PDAL_ADD_TEST(pdal_file_utils_test FILES FileUtilsTest.cpp)
|
|
|
|
PDAL_ADD_TEST(pdal_georeference_test FILES GeoreferenceTest.cpp)
|
2020-10-18 19:21:13 +00:00
|
|
|
@@ -43,7 +43,7 @@ PDAL_ADD_TEST(pdal_kdindex_test
|
2020-05-28 17:31:19 +00:00
|
|
|
KDIndexTest.cpp
|
|
|
|
INCLUDES
|
|
|
|
${PDAL_VENDOR_DIR}
|
|
|
|
- ${PDAL_VENDOR_DIR}/eigen
|
|
|
|
+ ${EIGEN_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
PDAL_ADD_TEST(pdal_kernel_test FILES KernelTest.cpp)
|
|
|
|
PDAL_ADD_TEST(pdal_log_test FILES LogTest.cpp)
|
2020-10-18 19:21:13 +00:00
|
|
|
@@ -70,7 +70,7 @@ PDAL_ADD_TEST(pdal_point_view_test
|
2020-05-28 17:31:19 +00:00
|
|
|
FILES
|
|
|
|
PointViewTest.cpp
|
|
|
|
INCLUDES
|
|
|
|
- ${PDAL_VENDOR_DIR}/eigen
|
|
|
|
+ ${EIGEN_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
PDAL_ADD_TEST(pdal_point_table_test FILES PointTableTest.cpp)
|
|
|
|
|
2020-10-18 19:21:13 +00:00
|
|
|
@@ -189,13 +189,13 @@ PDAL_ADD_TEST(pdal_io_pcd_reader_test
|
2020-05-28 17:31:19 +00:00
|
|
|
FILES
|
|
|
|
io/PcdReaderTest.cpp
|
|
|
|
INCLUDES
|
|
|
|
- ${PDAL_VENDOR_DIR}/eigen
|
|
|
|
+ ${EIGEN_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
PDAL_ADD_TEST(pdal_io_pcd_writer_test
|
|
|
|
FILES
|
|
|
|
io/PcdWriterTest.cpp
|
|
|
|
INCLUDES
|
|
|
|
- ${PDAL_VENDOR_DIR}/eigen
|
|
|
|
+ ${EIGEN_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
PDAL_ADD_TEST(pdal_io_ply_reader_test
|
|
|
|
FILES
|
2020-10-18 19:21:13 +00:00
|
|
|
@@ -231,7 +231,7 @@ PDAL_ADD_TEST(pdal_filters_chipper_test
|
2020-05-28 17:31:19 +00:00
|
|
|
filters/ChipperTest.cpp
|
|
|
|
INCLUDES
|
|
|
|
${NLOHMANN_INCLUDE_DIR}
|
|
|
|
- ${PDAL_VENDOR_DIR}/eigen
|
|
|
|
+ ${EIGEN_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
PDAL_ADD_TEST(pdal_filters_nndistance_test
|
|
|
|
FILES
|
2020-10-18 19:21:13 +00:00
|
|
|
@@ -281,7 +281,7 @@ PDAL_ADD_TEST(pdal_filters_icp_test
|
2020-05-28 17:31:19 +00:00
|
|
|
FILES
|
|
|
|
filters/IcpFilterTest.cpp
|
|
|
|
INCLUDES
|
|
|
|
- ${PDAL_VENDOR_DIR}/eigen
|
|
|
|
+ ${EIGEN_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
PDAL_ADD_TEST(pdal_filters_info_test FILES filters/InfoFilterTest.cpp)
|
|
|
|
PDAL_ADD_TEST(pdal_filters_neighborclassifier_test FILES filters/NeighborClassifierFilterTest.cpp)
|
2020-10-18 19:21:13 +00:00
|
|
|
@@ -301,7 +301,7 @@ PDAL_ADD_TEST(pdal_filters_planefit_test
|
|
|
|
FILES
|
|
|
|
filters/PlaneFitFilterTest.cpp
|
|
|
|
INCLUDES
|
|
|
|
- ${PDAL_VENDOR_DIR}/eigen)
|
|
|
|
+ ${EIGEN_INCLUDE_DIRS})
|
|
|
|
PDAL_ADD_TEST(pdal_filters_pmf_test FILES filters/PMFFilterTest.cpp)
|
|
|
|
PDAL_ADD_TEST(pdal_filters_reprojection_test FILES
|
|
|
|
filters/ReprojectionFilterTest.cpp)
|
|
|
|
@@ -326,7 +326,7 @@ PDAL_ADD_TEST(pdal_filters_splitter_test
|
2020-05-28 17:31:19 +00:00
|
|
|
FILES
|
|
|
|
filters/SplitterTest.cpp
|
|
|
|
INCLUDES
|
|
|
|
- ${PDAL_VENDOR_DIR}/eigen)
|
|
|
|
+ ${EIGEN_INCLUDE_DIRS})
|
|
|
|
PDAL_ADD_TEST(pdal_filters_stats_test FILES filters/StatsFilterTest.cpp)
|
|
|
|
PDAL_ADD_TEST(pdal_filters_transformation_test FILES
|
|
|
|
filters/TransformationFilterTest.cpp)
|