mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
Fix indent style
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#ifdef MTRACE
|
#ifdef MTRACE
|
||||||
#include <mcheck.h>
|
#include <mcheck.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
+20
-21
@@ -260,7 +260,6 @@ void handle(std::string message, int z, unsigned x, unsigned y, struct pool **fi
|
|||||||
outfeature->add_tags(v->n);
|
outfeature->add_tags(v->n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
free(value);
|
free(value);
|
||||||
@@ -312,10 +311,10 @@ void decode(char *fname, char *map, struct pool **file_keys, char ***layernames,
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (sqlite3_step(stmt) == SQLITE_ROW) {
|
while (sqlite3_step(stmt) == SQLITE_ROW) {
|
||||||
long long zoom = sqlite3_column_int(stmt, 0);
|
long long zoom = sqlite3_column_int(stmt, 0);
|
||||||
long long x = sqlite3_column_int(stmt, 1);
|
long long x = sqlite3_column_int(stmt, 1);
|
||||||
long long y = sqlite3_column_int(stmt, 2);
|
long long y = sqlite3_column_int(stmt, 2);
|
||||||
y = (1LL << zoom) - 1 - y;
|
y = (1LL << zoom) - 1 - y;
|
||||||
|
|
||||||
int len = sqlite3_column_bytes(stmt, 3);
|
int len = sqlite3_column_bytes(stmt, 3);
|
||||||
const char *s = (const char *) sqlite3_column_blob(stmt, 3);
|
const char *s = (const char *) sqlite3_column_blob(stmt, 3);
|
||||||
@@ -454,26 +453,26 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
while ((i = getopt(argc, argv, "fo:c:")) != -1) {
|
while ((i = getopt(argc, argv, "fo:c:")) != -1) {
|
||||||
switch (i) {
|
switch (i) {
|
||||||
case 'o':
|
case 'o':
|
||||||
outfile = optarg;
|
outfile = optarg;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'f':
|
case 'f':
|
||||||
force = 1;
|
force = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'c':
|
case 'c':
|
||||||
if (csv != NULL) {
|
if (csv != NULL) {
|
||||||
fprintf(stderr, "Only one -c for now\n");
|
fprintf(stderr, "Only one -c for now\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
csv = optarg;
|
csv = optarg;
|
||||||
readcsv(csv, header, mapping);
|
readcsv(csv, header, mapping);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
usage(argv);
|
usage(argv);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user