private static void processPbfs() { List <string> filenames = System.IO.Directory.EnumerateFiles(config["PbfFolder"], "*.pbf").ToList(); foreach (string filename in filenames) { Log.WriteLog("Loading " + filename + " at " + DateTime.Now); PbfReader r = new PbfReader(); r.outputPath = config["OutputDataFolder"]; r.styleSet = config["TagParserStyleSet"]; r.processingMode = config["processingMode"]; // "normal" and "center" allowed r.saveToTsv = config["UseTsvOutput"] == "True"; r.saveToDB = false; //This is slower than doing both steps separately because loading to the DB is single-threaded this way. r.onlyMatchedAreas = config["OnlyTaggedAreas"] == "True"; r.reprocessFile = config["reprocessFiles"] == "True"; r.ProcessFile(filename, long.Parse(config["UseOneRelationID"])); File.Move(filename, filename + "done"); } }