Skip to content

Commit

Permalink
use completeBaseName to make copc copy
Browse files Browse the repository at this point in the history
this takes the full filename until the last dot.
  • Loading branch information
jjimenezshaw authored and nyalldawson committed Nov 27, 2022
1 parent fdbcb2b commit 81ca6f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/pdal/qgspdalprovider.cpp
Expand Up @@ -79,15 +79,15 @@ static QString _outEptDir( const QString &filename )
{
const QFileInfo fi( filename );
const QDir directory = fi.absoluteDir();
const QString outputDir = QStringLiteral( "%1/ept_%2" ).arg( directory.absolutePath() ).arg( fi.baseName() );
const QString outputDir = QStringLiteral( "%1/ept_%2" ).arg( directory.absolutePath() ).arg( fi.completeBaseName() );
return outputDir;
}

static QString _outCopcFile( const QString &filename )
{
const QFileInfo fi( filename );
const QDir directory = fi.absoluteDir();
const QString outputFile = QStringLiteral( "%1/%2.copc.laz" ).arg( directory.absolutePath() ).arg( fi.baseName() );
const QString outputFile = QStringLiteral( "%1/%2.copc.laz" ).arg( directory.absolutePath() ).arg( fi.completeBaseName() );
return outputFile;
}

Expand Down

0 comments on commit 81ca6f2

Please sign in to comment.