fix: mkdir -p du répertoire parent avant appel Tippecanoe
This commit is contained in:
@@ -122,6 +122,11 @@ class GenerateTilesCommand extends Command
|
|||||||
|
|
||||||
private function runTippecanoe(string $geojson, string $outputDir, string $layer, SymfonyStyle $io): void
|
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';
|
$tmpFile = sys_get_temp_dir() . '/tiles_' . uniqid() . '.geojson';
|
||||||
file_put_contents($tmpFile, $geojson);
|
file_put_contents($tmpFile, $geojson);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user