@@ -349,15 +349,15 @@ void output_pgsql_t::relation_add(osmium::Relation const &rel)
349349/* Delete is easy, just remove all traces of this object. We don't need to
350350 * worry about finding objects that depend on it, since the same diff must
351351 * contain the change for that also. */
352- void output_pgsql_t::node_delete (osmid_t osm_id )
352+ void output_pgsql_t::node_delete (osmium::Node const &node )
353353{
354354 if (m_expire.enabled ()) {
355- auto const results = m_tables[t_point]->get_wkb (osm_id );
355+ auto const results = m_tables[t_point]->get_wkb (node. id () );
356356 if (expire_from_result (&m_expire, results, m_expire_config) != 0 ) {
357- m_tables[t_point]->delete_row (osm_id );
357+ m_tables[t_point]->delete_row (node. id () );
358358 }
359359 } else {
360- m_tables[t_point]->delete_row (osm_id );
360+ m_tables[t_point]->delete_row (node. id () );
361361 }
362362}
363363
@@ -392,9 +392,9 @@ void output_pgsql_t::pgsql_delete_way_from_output(osmid_t osm_id)
392392 delete_from_output_and_expire (osm_id);
393393}
394394
395- void output_pgsql_t::way_delete (osmid_t osm_id )
395+ void output_pgsql_t::way_delete (osmium::Way *way )
396396{
397- pgsql_delete_way_from_output (osm_id );
397+ pgsql_delete_way_from_output (way-> id () );
398398}
399399
400400/* Relations are identified by using negative IDs */
@@ -403,29 +403,29 @@ void output_pgsql_t::pgsql_delete_relation_from_output(osmid_t osm_id)
403403 delete_from_output_and_expire (-osm_id);
404404}
405405
406- void output_pgsql_t::relation_delete (osmid_t osm_id )
406+ void output_pgsql_t::relation_delete (osmium::Relation const &rel )
407407{
408- pgsql_delete_relation_from_output (osm_id );
408+ pgsql_delete_relation_from_output (rel. id () );
409409}
410410
411411/* Modify is slightly trickier. The basic idea is we simply delete the
412412 * object and create it with the new parameters. Then we need to mark the
413413 * objects that depend on this one */
414414void output_pgsql_t::node_modify (osmium::Node const &node)
415415{
416- node_delete (node. id () );
416+ node_delete (node);
417417 node_add (node);
418418}
419419
420420void output_pgsql_t::way_modify (osmium::Way *way)
421421{
422- way_delete (way-> id () );
422+ way_delete (way);
423423 way_add (way);
424424}
425425
426426void output_pgsql_t::relation_modify (osmium::Relation const &rel)
427427{
428- relation_delete (rel. id () );
428+ relation_delete (rel);
429429 relation_add (rel);
430430}
431431
@@ -448,7 +448,9 @@ std::shared_ptr<output_t> output_pgsql_t::clone(
448448output_pgsql_t ::output_pgsql_t (std::shared_ptr<middle_query_t > const &mid,
449449 std::shared_ptr<thread_pool_t > thread_pool,
450450 options_t const &options)
451- : output_t (mid, std::move(thread_pool), options), m_proj(options.projection),
451+ : output_t (mid, std::move(thread_pool), options),
452+ m_ignore_untagged_objects (!options.extra_attributes),
453+ m_proj(options.projection),
452454 m_expire(options.expire_tiles_zoom, options.projection),
453455 m_buffer(32768 , osmium::memory::Buffer::auto_grow::yes),
454456 m_rels_buffer(1024 , osmium::memory::Buffer::auto_grow::yes),
@@ -470,8 +472,6 @@ output_pgsql_t::output_pgsql_t(std::shared_ptr<middle_query_t> const &mid,
470472
471473 m_enable_way_area = read_style_file (options.style , &exlist);
472474
473- m_ignore_untagged_objects = !options.extra_attributes ;
474-
475475 m_tagtransform = tagtransform_t::make_tagtransform (&options, exlist);
476476
477477 auto copy_thread =
0 commit comments