Add option to set buffer size. Pass it through to clipping functions.

This commit is contained in:
Eric Fischer
2014-10-27 13:20:17 -07:00
parent 4cb56a6b11
commit 3cd6fcfbe0
6 changed files with 38 additions and 29 deletions
+3 -3
View File
@@ -340,7 +340,7 @@ void evaluate(std::vector<coalesce> &features, char *metabase, struct pool *file
pool_free(&keys);
}
long long write_tile(struct index *start, struct index *end, char *metabase, unsigned *file_bbox, int z, unsigned tx, unsigned ty, int detail, int basezoom, struct pool *file_keys, char *layername, sqlite3 *outdb, double droprate) {
long long write_tile(struct index *start, struct index *end, char *metabase, unsigned *file_bbox, int z, unsigned tx, unsigned ty, int detail, int basezoom, struct pool *file_keys, char *layername, sqlite3 *outdb, double droprate, int buffer) {
int line_detail;
static bool evaluated = false;
@@ -398,11 +398,11 @@ long long write_tile(struct index *start, struct index *end, char *metabase, uns
}
if (t == VT_LINE) {
geom = clip_lines(geom, z, line_detail);
geom = clip_lines(geom, z, line_detail, buffer);
}
if (t == VT_POLYGON) {
geom = clip_poly(geom, z, line_detail);
geom = clip_poly(geom, z, line_detail, buffer);
}
if (t == VT_LINE || t == VT_POLYGON) {