webtrees / geodata

Geographic data for webtrees
9 stars 7 forks source link

tools/export: League\Flysystem\FileExistsException #29

Open Amgine0 opened 6 years ago

Amgine0 commented 6 years ago
In Filesystem.php line 402:

  [League\Flysystem\FileExistsException]          
  File already exists at path: places/flags/.png  

Exception trace:
 League\Flysystem\Filesystem->assertAbsent() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/league/flysystem/src/Filesystem.php:66
 League\Flysystem\Filesystem->write() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/src/ExportCommand.php:146
 Webtrees\Geodata\ExportCommand->exportData() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/src/ExportCommand.php:68
 Webtrees\Geodata\ExportCommand->execute() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Command/Command.php:252
 Symfony\Component\Console\Command\Command->run() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:865
 Symfony\Component\Console\Application->doRunCommand() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:241
 Symfony\Component\Console\Application->doRun() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:143
 Symfony\Component\Console\Application->run() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/tools/export:13

export [--language LANGUAGE] [--prefix [PREFIX]]

Exporting after adding flags and places for Norway/Østfeldt/[all municipalities]/[some villages] using tools/wiki-place and tools/wiki-flag.

fisharebest commented 6 years ago

File already exists at path: places/flags/.png

Empty filename?

Does the flag's placename exist as a feature in the parent data.geojson file?

Amgine0 commented 6 years ago

These three issues were all from a single run of export. The immediately previous output was a PHP Notice for undefined index for Våler, which does have a placename as a feature in the parent data.geojson, and Våler's data.geojson has a placename feature for Kirkebygden (which does not yet have a flag/coat of arms)

But I have a suspicion: would the Scilly Isles .svg happen to have an embedded png in it?