mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Separate ordering by feature_minzoom from ordering inverse-spatially
This commit is contained in:
@@ -3212,6 +3212,7 @@ int main(int argc, char **argv) {
|
|||||||
{"order-smallest-first", no_argument, 0, '~'},
|
{"order-smallest-first", no_argument, 0, '~'},
|
||||||
{"order-largest-first", no_argument, 0, '~'},
|
{"order-largest-first", no_argument, 0, '~'},
|
||||||
{"order-spatial-inverse", no_argument, 0, '~'},
|
{"order-spatial-inverse", no_argument, 0, '~'},
|
||||||
|
{"order-by-feature-minzoom", no_argument, 0, '~'},
|
||||||
|
|
||||||
{"Adding calculated attributes", 0, 0, 0},
|
{"Adding calculated attributes", 0, 0, 0},
|
||||||
{"calculate-feature-density", no_argument, &additional[A_CALCULATE_FEATURE_DENSITY], 1},
|
{"calculate-feature-density", no_argument, &additional[A_CALCULATE_FEATURE_DENSITY], 1},
|
||||||
@@ -3358,8 +3359,9 @@ int main(int argc, char **argv) {
|
|||||||
} else if (strcmp(opt, "order-largest-first") == 0) {
|
} else if (strcmp(opt, "order-largest-first") == 0) {
|
||||||
order_by.push_back(order_field(ORDER_BY_SIZE, true));
|
order_by.push_back(order_field(ORDER_BY_SIZE, true));
|
||||||
order_by_size = true;
|
order_by_size = true;
|
||||||
} else if (strcmp(opt, "order-spatial-inverse") == 0) {
|
} else if (strcmp(opt, "order-by-feature-minzoom") == 0) {
|
||||||
order_by.push_back(order_field(ORDER_BY_FEATURE_MINZOOM, false));
|
order_by.push_back(order_field(ORDER_BY_FEATURE_MINZOOM, false));
|
||||||
|
} else if (strcmp(opt, "order-spatial-inverse") == 0) {
|
||||||
order_by.push_back(order_field(ORDER_SPATIAL, false));
|
order_by.push_back(order_field(ORDER_SPATIAL, false));
|
||||||
} else if (strcmp(opt, "simplification-at-maximum-zoom") == 0) {
|
} else if (strcmp(opt, "simplification-at-maximum-zoom") == 0) {
|
||||||
maxzoom_simplification = atof_require(optarg, "Mazoom simplification");
|
maxzoom_simplification = atof_require(optarg, "Mazoom simplification");
|
||||||
|
|||||||
Reference in New Issue
Block a user