Use the first coordinates of the first feature as the origin for deltas

This commit is contained in:
Eric Fischer
2015-06-18 10:52:01 -07:00
parent 46626e4f08
commit 1a44538bdf
4 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -506,7 +506,7 @@ long long write_tile(char **geoms, char *metabase, char *stringpool, unsigned *f
serialize_byte(geomfile[j], t, &geompos[j], fname);
serialize_byte(geomfile[j], layer, &geompos[j], fname);
serialize_long_long(geomfile[j], metastart, &geompos[j], fname);
long long wx = 0, wy = 0;
long long wx = initial_x, wy = initial_y;
for (unsigned u = 0; u < geom.size(); u++) {
serialize_byte(geomfile[j], geom[u].op, &geompos[j], fname);