|
18 | 18 |
|
19 | 19 | std::unique_ptr<gen_base_t> create_generalizer(std::string const &strategy, |
20 | 20 | pg_conn_t *connection, |
21 | | - params_t *params) |
| 21 | + bool append, params_t *params) |
22 | 22 | { |
23 | 23 | auto generalizer = [&]() -> std::unique_ptr<gen_base_t> { |
24 | 24 | if (strategy == "builtup") { |
25 | | - return std::make_unique<gen_tile_builtup_t>(connection, params); |
| 25 | + return std::make_unique<gen_tile_builtup_t>(connection, append, |
| 26 | + params); |
26 | 27 | } |
27 | 28 | if (strategy == "discrete-isolation") { |
28 | | - return std::make_unique<gen_di_t>(connection, params); |
| 29 | + return std::make_unique<gen_di_t>(connection, append, params); |
29 | 30 | } |
30 | 31 | if (strategy == "raster-union") { |
31 | | - return std::make_unique<gen_tile_raster_union_t>(connection, |
| 32 | + return std::make_unique<gen_tile_raster_union_t>(connection, append, |
32 | 33 | params); |
33 | 34 | } |
34 | 35 | if (strategy == "rivers") { |
35 | | - return std::make_unique<gen_rivers_t>(connection, params); |
| 36 | + return std::make_unique<gen_rivers_t>(connection, append, params); |
36 | 37 | } |
37 | 38 | if (strategy == "vector-union") { |
38 | | - return std::make_unique<gen_tile_vector_union_t>(connection, |
| 39 | + return std::make_unique<gen_tile_vector_union_t>(connection, append, |
39 | 40 | params); |
40 | 41 | } |
41 | 42 | throw fmt_error("Unknown generalization strategy '{}'.", strategy); |
|
0 commit comments