Skip to content

Commit

Permalink
Separate ordering by feature_minzoom from ordering inverse-spatially
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-f committed Dec 15, 2023
1 parent 095b719 commit 35b19a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3212,6 +3212,7 @@ int main(int argc, char **argv) {
{"order-smallest-first", no_argument, 0, '~'},
{"order-largest-first", no_argument, 0, '~'},
{"order-spatial-inverse", no_argument, 0, '~'},
{"order-by-feature-minzoom", no_argument, 0, '~'},

{"Adding calculated attributes", 0, 0, 0},
{"calculate-feature-density", no_argument, &additional[A_CALCULATE_FEATURE_DENSITY], 1},
Expand Down Expand Up @@ -3358,8 +3359,9 @@ int main(int argc, char **argv) {
} else if (strcmp(opt, "order-largest-first") == 0) {
order_by.push_back(order_field(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));
} else if (strcmp(opt, "order-spatial-inverse") == 0) {
order_by.push_back(order_field(ORDER_SPATIAL, false));
} else if (strcmp(opt, "simplification-at-maximum-zoom") == 0) {
maxzoom_simplification = atof_require(optarg, "Mazoom simplification");
Expand Down

0 comments on commit 35b19a2

Please sign in to comment.