@@ -50,7 +50,7 @@ void output_pgsql_t::pgsql_out_way(osmium::Way const &way, taglist_t *tags,
5050 if (polygon && way.is_closed ()) {
5151 auto wkb = m_builder.get_wkb_polygon (way);
5252 if (!wkb.empty ()) {
53- expire .from_wkb (wkb, way.id ());
53+ m_expire .from_wkb (wkb, way.id ());
5454 if (m_enable_way_area) {
5555 auto const area =
5656 m_options.reproject_area
@@ -67,7 +67,7 @@ void output_pgsql_t::pgsql_out_way(osmium::Way const &way, taglist_t *tags,
6767 double const split_at =
6868 m_options.projection ->target_latlon () ? 1 : 100 * 1000 ;
6969 for (auto const &wkb : m_builder.get_wkb_line (way.nodes (), split_at)) {
70- expire .from_wkb (wkb, way.id ());
70+ m_expire .from_wkb (wkb, way.id ());
7171 m_tables[t_line]->write_row (way.id (), *tags, wkb);
7272 if (roads) {
7373 m_tables[t_roads]->write_row (way.id (), *tags, wkb);
@@ -130,8 +130,8 @@ void output_pgsql_t::stop(thread_pool_t *pool)
130130 }
131131
132132 if (m_options.expire_tiles_zoom_min > 0 ) {
133- expire .output_and_destroy (m_options.expire_tiles_filename .c_str (),
134- m_options.expire_tiles_zoom_min );
133+ m_expire .output_and_destroy (m_options.expire_tiles_filename .c_str (),
134+ m_options.expire_tiles_zoom_min );
135135 }
136136}
137137
@@ -143,7 +143,7 @@ void output_pgsql_t::node_add(osmium::Node const &node)
143143 }
144144
145145 auto wkb = m_builder.get_wkb_node (node.location ());
146- expire .from_wkb (wkb, node.id ());
146+ m_expire .from_wkb (wkb, node.id ());
147147 m_tables[t_point]->write_row (node.id (), outtags, wkb);
148148}
149149
@@ -240,7 +240,7 @@ void output_pgsql_t::pgsql_process_relation(osmium::Relation const &rel)
240240 m_options.projection ->target_latlon () ? 1 : 100 * 1000 ;
241241 auto wkbs = m_builder.get_wkb_multiline (buffer, split_at);
242242 for (auto const &wkb : wkbs) {
243- expire .from_wkb (wkb, -rel.id ());
243+ m_expire .from_wkb (wkb, -rel.id ());
244244 m_tables[t_line]->write_row (-rel.id (), outtags, wkb);
245245 if (roads) {
246246 m_tables[t_roads]->write_row (-rel.id (), outtags, wkb);
@@ -253,7 +253,7 @@ void output_pgsql_t::pgsql_process_relation(osmium::Relation const &rel)
253253 auto wkbs = m_builder.get_wkb_multipolygon (rel, buffer, m_options.enable_multi );
254254
255255 for (auto const &wkb : wkbs) {
256- expire .from_wkb (wkb, -rel.id ());
256+ m_expire .from_wkb (wkb, -rel.id ());
257257 if (m_enable_way_area) {
258258 auto const area =
259259 m_options.reproject_area
@@ -293,7 +293,7 @@ void output_pgsql_t::relation_add(osmium::Relation const &rel)
293293 * contain the change for that also. */
294294void output_pgsql_t::node_delete (osmid_t osm_id)
295295{
296- if (expire .from_db (m_tables[t_point].get (), osm_id) != 0 ) {
296+ if (m_expire .from_db (m_tables[t_point].get (), osm_id) != 0 ) {
297297 m_tables[t_point]->delete_row (osm_id);
298298 }
299299}
@@ -311,10 +311,10 @@ void output_pgsql_t::pgsql_delete_way_from_output(osmid_t osm_id)
311311 }
312312
313313 m_tables[t_roads]->delete_row (osm_id);
314- if (expire .from_db (m_tables[t_line].get (), osm_id) != 0 ) {
314+ if (m_expire .from_db (m_tables[t_line].get (), osm_id) != 0 ) {
315315 m_tables[t_line]->delete_row (osm_id);
316316 }
317- if (expire .from_db (m_tables[t_poly].get (), osm_id) != 0 ) {
317+ if (m_expire .from_db (m_tables[t_poly].get (), osm_id) != 0 ) {
318318 m_tables[t_poly]->delete_row (osm_id);
319319 }
320320}
@@ -328,10 +328,10 @@ void output_pgsql_t::way_delete(osmid_t osm_id)
328328void output_pgsql_t::pgsql_delete_relation_from_output (osmid_t osm_id)
329329{
330330 m_tables[t_roads]->delete_row (-osm_id);
331- if (expire .from_db (m_tables[t_line].get (), -osm_id) != 0 ) {
331+ if (m_expire .from_db (m_tables[t_line].get (), -osm_id) != 0 ) {
332332 m_tables[t_line]->delete_row (-osm_id);
333333 }
334- if (expire .from_db (m_tables[t_poly].get (), -osm_id) != 0 ) {
334+ if (m_expire .from_db (m_tables[t_poly].get (), -osm_id) != 0 ) {
335335 m_tables[t_poly]->delete_row (-osm_id);
336336 }
337337}
@@ -383,7 +383,7 @@ output_pgsql_t::output_pgsql_t(
383383 std::shared_ptr<middle_query_t > const &mid, options_t const &o,
384384 std::shared_ptr<db_copy_thread_t > const ©_thread)
385385: output_t (mid, o), m_builder(o.projection),
386- expire (o.expire_tiles_zoom, o.expire_tiles_max_bbox, o.projection),
386+ m_expire (o.expire_tiles_zoom, o.expire_tiles_max_bbox, o.projection),
387387 buffer(32768 , osmium::memory::Buffer::auto_grow::yes),
388388 rels_buffer(1024 , osmium::memory::Buffer::auto_grow::yes)
389389{
@@ -441,10 +441,9 @@ output_pgsql_t::output_pgsql_t(
441441 std::shared_ptr<db_copy_thread_t > const ©_thread)
442442: output_t (mid, other->m_options),
443443 m_tagtransform (other->m_tagtransform->clone ()),
444- m_enable_way_area(other->m_enable_way_area),
445- m_builder(m_options.projection),
446- expire(m_options.expire_tiles_zoom, m_options.expire_tiles_max_bbox,
447- m_options.projection),
444+ m_enable_way_area(other->m_enable_way_area), m_builder(m_options.projection),
445+ m_expire(m_options.expire_tiles_zoom, m_options.expire_tiles_max_bbox,
446+ m_options.projection),
448447 buffer(1024 , osmium::memory::Buffer::auto_grow::yes),
449448 rels_buffer(1024 , osmium::memory::Buffer::auto_grow::yes)
450449{
@@ -461,6 +460,6 @@ void output_pgsql_t::merge_expire_trees(output_t *other)
461460{
462461 auto *const opgsql = dynamic_cast <output_pgsql_t *>(other);
463462 if (opgsql) {
464- expire .merge_and_destroy (opgsql->expire );
463+ m_expire .merge_and_destroy (opgsql->m_expire );
465464 }
466465}
0 commit comments