From 295548b04ab47b05d88734602bbf3412d3fc3fef Mon Sep 17 00:00:00 2001 From: Gwadaking Date: Tue, 14 Apr 2026 01:58:09 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20mkdir=20-p=20du=20r=C3=A9pertoire=20pare?= =?UTF-8?q?nt=20avant=20appel=20Tippecanoe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/Command/GenerateTilesCommand.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/Command/GenerateTilesCommand.php b/backend/src/Command/GenerateTilesCommand.php index 710b8e9..4bc8f07 100644 --- a/backend/src/Command/GenerateTilesCommand.php +++ b/backend/src/Command/GenerateTilesCommand.php @@ -122,6 +122,11 @@ class GenerateTilesCommand extends Command private function runTippecanoe(string $geojson, string $outputDir, string $layer, SymfonyStyle $io): void { + $parentDir = dirname($outputDir); + if (!is_dir($parentDir)) { + mkdir($parentDir, 0755, true); + } + $tmpFile = sys_get_temp_dir() . '/tiles_' . uniqid() . '.geojson'; file_put_contents($tmpFile, $geojson);