Skip to content

Commit

Permalink
pdal_wrench: fix msvc build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 13, 2023
1 parent 2ec10bf commit 2981bdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions external/pdal_wrench/vpc.cpp
Expand Up @@ -199,7 +199,7 @@ bool VirtualPointCloud::write(std::string filename)
std::string filenameAbsolute = filename;
if (!fs::path(filename).is_absolute())
{
filenameAbsolute = fs::absolute(filename);
filenameAbsolute = fs::absolute(filename).string();
}

std::ofstream outputJson(filenameAbsolute);
Expand Down Expand Up @@ -452,7 +452,7 @@ void buildVpc(std::vector<std::string> args)
if (!pdal::Utils::isRemote(inputFile) && !fs::path(inputFile).is_absolute())
{
// convert to absolute path using the current path
inputFileAbsolute = fs::absolute(inputFile);
inputFileAbsolute = fs::absolute(inputFile).string();
}

MetadataNode layout;
Expand Down Expand Up @@ -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
fs::path outputParentDir = fs::path(outputFile).parent_path();
fs::path outputStem = outputParentDir / fs::path(outputFile).stem();
overviewFilenameBase = std::string(outputStem);
overviewFilenameCopc = std::string(outputStem) + "-overview.copc.laz";
overviewFilenameBase = outputStem.string();
overviewFilenameCopc = outputStem.string() + "-overview.copc.laz";
}

if (boundaries || stats || overview)
Expand Down

1 comment on commit 2981bdd

@jef-n
Copy link
Member Author

@jef-n jef-n commented on 2981bdd Apr 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wonder-sk please upstream

Please sign in to comment.