Add --order-smallest-first and --order-largest-first options

This commit is contained in:
Erica Fischer
2022-10-05 10:43:10 -07:00
parent daf5992e3b
commit ce54668d7c
9 changed files with 772 additions and 1 deletions
+1 -1
View File
@@ -517,7 +517,7 @@ int serialize_feature(struct serialization_state *sst, serial_feature &sf) {
}
double extent = 0;
if (additional[A_DROP_SMALLEST_AS_NEEDED] || additional[A_COALESCE_SMALLEST_AS_NEEDED]) {
if (additional[A_DROP_SMALLEST_AS_NEEDED] || additional[A_COALESCE_SMALLEST_AS_NEEDED] || order_by_size) {
if (sf.t == VT_POLYGON) {
for (size_t i = 0; i < sf.geometry.size(); i++) {
if (sf.geometry[i].op == VT_MOVETO) {