Pass a serial_feature to rewrite instead of many broken-down arguments

This commit is contained in:
Erica Fischer
2024-02-05 10:50:48 -08:00
parent 98526d94e1
commit 6f4ab9b725
2 changed files with 24 additions and 31 deletions
+2
View File
@@ -260,9 +260,11 @@ serial_feature deserialize_feature(std::string &geoms, unsigned z, unsigned tx,
sf.has_id = false;
if (sf.layer & (1 << FLAG_MINZOOM)) {
deserialize_int(&cp, &sf.tippecanoe_minzoom);
sf.has_tippecanoe_minzoom = true;
}
if (sf.layer & (1 << FLAG_MAXZOOM)) {
deserialize_int(&cp, &sf.tippecanoe_maxzoom);
sf.has_tippecanoe_maxzoom = true;
}
if (sf.layer & (1 << FLAG_ID)) {
sf.has_id = true;