Serialize features into memory rather than straight to disk

This commit is contained in:
Erica Fischer
2023-01-24 12:19:58 -08:00
parent 4c52aeacf1
commit 21c946dd49
4 changed files with 76 additions and 55 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ struct serial_feature {
bool dropped = false;
};
void serialize_feature(FILE *geomfile, serial_feature *sf, std::atomic<long long> *geompos, const char *fname, long long wx, long long wy, bool include_minzoom);
void serialize_feature(FILE *geomfile, serial_feature *sf, std::atomic<long long> *geompos, const char *fname, long long wx, long long wy);
serial_feature deserialize_feature(FILE *geoms, std::atomic<long long> *geompos_in, unsigned z, unsigned tx, unsigned ty, unsigned *initial_x, unsigned *initial_y);
struct reader {