Commit 5e3ee3cb authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Create directories only if they are actually needed

parent f4530d81
......@@ -65,13 +65,13 @@ QString tileFileName(const QCommandLineParser &parser, int x, int y, int zoomLev
QString const extension = parser.value("extension");
QString const outputDir = QString("%1/%2/%3").arg(parser.value("output")).arg(zoomLevel).arg(x);
QString const outputFile = QString("%1/%2.%3").arg(outputDir).arg(y).arg(extension);
return outputFile;
bool writeTile(GeoDataDocument* tile, const QString &outputFile)
if (!GeoDataDocumentWriter::write(outputFile, *tile)) {
qWarning() << "Could not write the file " << outputFile;
return false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment