mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
pdal_wrench: fix msvc build
This commit is contained in:
parent
2ec10bf62d
commit
2981bddb2e
8
external/pdal_wrench/vpc.cpp
vendored
8
external/pdal_wrench/vpc.cpp
vendored
@ -199,7 +199,7 @@ bool VirtualPointCloud::write(std::string filename)
|
|||||||
std::string filenameAbsolute = filename;
|
std::string filenameAbsolute = filename;
|
||||||
if (!fs::path(filename).is_absolute())
|
if (!fs::path(filename).is_absolute())
|
||||||
{
|
{
|
||||||
filenameAbsolute = fs::absolute(filename);
|
filenameAbsolute = fs::absolute(filename).string();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ofstream outputJson(filenameAbsolute);
|
std::ofstream outputJson(filenameAbsolute);
|
||||||
@ -452,7 +452,7 @@ void buildVpc(std::vector<std::string> args)
|
|||||||
if (!pdal::Utils::isRemote(inputFile) && !fs::path(inputFile).is_absolute())
|
if (!pdal::Utils::isRemote(inputFile) && !fs::path(inputFile).is_absolute())
|
||||||
{
|
{
|
||||||
// convert to absolute path using the current path
|
// convert to absolute path using the current path
|
||||||
inputFileAbsolute = fs::absolute(inputFile);
|
inputFileAbsolute = fs::absolute(inputFile).string();
|
||||||
}
|
}
|
||||||
|
|
||||||
MetadataNode layout;
|
MetadataNode layout;
|
||||||
@ -500,8 +500,8 @@ void buildVpc(std::vector<std::string> args)
|
|||||||
// for /tmp/hello.vpc we will use /tmp/hello-overview.laz as overview file
|
// for /tmp/hello.vpc we will use /tmp/hello-overview.laz as overview file
|
||||||
fs::path outputParentDir = fs::path(outputFile).parent_path();
|
fs::path outputParentDir = fs::path(outputFile).parent_path();
|
||||||
fs::path outputStem = outputParentDir / fs::path(outputFile).stem();
|
fs::path outputStem = outputParentDir / fs::path(outputFile).stem();
|
||||||
overviewFilenameBase = std::string(outputStem);
|
overviewFilenameBase = outputStem.string();
|
||||||
overviewFilenameCopc = std::string(outputStem) + "-overview.copc.laz";
|
overviewFilenameCopc = outputStem.string() + "-overview.copc.laz";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (boundaries || stats || overview)
|
if (boundaries || stats || overview)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user