Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylannl committed Sep 20, 2022
2 parents 37929f4 + 7a9643f commit 178a545
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
Binary file modified .DS_Store
Binary file not shown.
20 changes: 11 additions & 9 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,17 +548,19 @@ int main(int argc, const char * argv[]) {
}
}
else {
if (!boost::filesystem::exists(thepath) || !boost::filesystem::is_directory(thepath)) {
std::cerr << "ERROR: " << thepath << " is not a valid path. Can not read LAS file.\n";
boost::filesystem::path p;
try {
p = canonical(thepath, ypcan).make_preferred();
}
catch (boost::filesystem::filesystem_error &e) {
std::cerr << "WARNING: " << e.what() << ". Abort." << std::endl;
return EXIT_FAILURE;
} else {
PointFile pointFile;
boost::filesystem::path p = canonical(thepath, ypcan).make_preferred();
pointFile.filename = p.string();
pointFile.lasomits = lasomits;
pointFile.thinning = thinning;
elevationFiles.push_back(pointFile);
}
PointFile pointFile;
pointFile.filename = p.string();
pointFile.lasomits = lasomits;
pointFile.thinning = thinning;
elevationFiles.push_back(pointFile);
}
}
}
Expand Down

0 comments on commit 178a545

Please sign in to comment.