mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-03 00:45:41 +02:00
Look up the attribute value for ordering
This commit is contained in:
+5
-5
@@ -13,7 +13,7 @@ extern int optind;
|
||||
int detail = 12; // tippecanoe-style: mvt extent == 1 << detail
|
||||
int buffer = 5; // tippecanoe-style: mvt buffer == extent * buffer / 256;
|
||||
int multiplier = 1;
|
||||
std::string filter;
|
||||
std::string order_by;
|
||||
|
||||
std::set<std::string> keep;
|
||||
|
||||
@@ -27,7 +27,7 @@ int main(int argc, char **argv) {
|
||||
int i;
|
||||
const char *outfile = NULL;
|
||||
|
||||
while ((i = getopt(argc, argv, "y:o:d:b:f:m:")) != -1) {
|
||||
while ((i = getopt(argc, argv, "y:o:d:b:O:m:")) != -1) {
|
||||
switch (i) {
|
||||
case 'y':
|
||||
keep.insert(optarg);
|
||||
@@ -49,8 +49,8 @@ int main(int argc, char **argv) {
|
||||
multiplier = atoi(optarg);
|
||||
break;
|
||||
|
||||
case 'f':
|
||||
filter = optarg;
|
||||
case 'O':
|
||||
order_by = optarg;
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -101,7 +101,7 @@ int main(int argc, char **argv) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
std::string out = overzoom(tile, oz, ox, oy, nz, nx, ny, detail, buffer, keep, true, NULL, multiplier, filter);
|
||||
std::string out = overzoom(tile, oz, ox, oy, nz, nx, ny, detail, buffer, keep, true, NULL, multiplier, order_by);
|
||||
fwrite(out.c_str(), sizeof(char), out.size(), f);
|
||||
fclose(f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user