/// Tell the user a bit about PDAL's compilation std::string GetFullVersionString() { std::ostringstream os; std::string sha = GetSHA1(); if (!Utils::iequals(sha, "Release")) sha = sha.substr(0,6); os << PDAL_VERSION_STRING << " (git-version: " << sha << ")"; return os.str(); }
/// Tell the user a bit about PDAL's compilation std::string GetFullVersionString() { std::ostringstream os; #ifdef PDAL_HAVE_LIBGEOTIFF os << " GeoTIFF " << (LIBGEOTIFF_VERSION / 1000) << '.' << (LIBGEOTIFF_VERSION / 100 % 10) << '.' << (LIBGEOTIFF_VERSION % 100 / 10); #endif os << " GDAL " << GDALVersionInfo("RELEASE_NAME"); #ifdef PDAL_HAVE_LASZIP os << " LASzip " << LASZIP_VERSION_MAJOR << "." << LASZIP_VERSION_MINOR << "." << LASZIP_VERSION_REVISION; #endif std::string info(os.str()); os.str(""); os << "PDAL " << PDAL_VERSION_STRING; std::ostringstream revs; revs << GetSHA1(); os << " (" << revs.str().substr(0, 6) <<")"; if (!info.empty()) { os << " with" << info; } return os.str(); }