Factoring out geometry parsing from feature parsing

This commit is contained in:
Erica Fischer
2024-11-21 15:44:46 -08:00
parent 72731a9fce
commit 0a4f6fe546
4 changed files with 134 additions and 124 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ serial_feature parse_feature(json_pull *jp, int z, unsigned x, unsigned y, std::
}
drawvec dv;
parse_geometry(t, coordinates, dv, VT_MOVETO, "Filter output", jp->line, j);
parse_coordinates(t, coordinates, dv, VT_MOVETO, "Filter output", jp->line, j);
if (mb_geometry[t] == VT_POLYGON) {
dv = fix_polygon(dv, false, false);
}