Create the output tile directory even if there are no valid features

This commit is contained in:
Eric Fischer
2018-09-24 11:16:13 -07:00
parent 03199a77a5
commit b2999fe9a8
6 changed files with 30 additions and 2 deletions
+1
View File
@@ -65,6 +65,7 @@ static bool pbfname(const char *s) {
void check_dir(const char *dir, bool force, bool forcetable) {
struct stat st;
mkdir(dir, S_IRWXU | S_IRWXG | S_IRWXO);
std::string meta = std::string(dir) + "/" + "metadata.json";
if (force) {
unlink(meta.c_str()); // error OK since it may not exist;