Minimize external dependencies for Geobuf testing

This commit is contained in:
Eric Fischer
2017-08-30 15:32:36 -07:00
parent 076dfcdfeb
commit a5b1378d1a
8 changed files with 193 additions and 12 deletions
+1 -1
View File
@@ -1193,7 +1193,7 @@ int read_input(std::vector<source> &sources, char *fname, int maxzoom, int minzo
}
size_t layer = a->second.id;
if (sources[source].file.size() > 4 && sources[source].file.substr(sources[source].file.size() - 4) == std::string(".pbf")) {
if (sources[source].file.size() > 7 && sources[source].file.substr(sources[source].file.size() - 7) == std::string(".geobuf")) {
struct stat st;
if (fstat(fd, &st) != 0) {
perror("fstat");