@@ -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. c_str () , way.id ());
53+ 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. c_str () , way.id ());
70+ 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);
@@ -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. c_str () , node.id ());
146+ expire.from_wkb (wkb, node.id ());
147147 m_tables[t_point]->write_row (node.id (), outtags, wkb);
148148}
149149
@@ -206,7 +206,7 @@ void output_pgsql_t::pgsql_process_relation(osmium::Relation const &rel)
206206 m_options.projection ->target_latlon () ? 1 : 100 * 1000 ;
207207 auto wkbs = m_builder.get_wkb_multiline (buffer, split_at);
208208 for (auto const &wkb : wkbs) {
209- expire.from_wkb (wkb. c_str () , -rel.id ());
209+ expire.from_wkb (wkb, -rel.id ());
210210 m_tables[t_line]->write_row (-rel.id (), outtags, wkb);
211211 if (roads) {
212212 m_tables[t_roads]->write_row (-rel.id (), outtags, wkb);
@@ -219,7 +219,7 @@ void output_pgsql_t::pgsql_process_relation(osmium::Relation const &rel)
219219 auto wkbs = m_builder.get_wkb_multipolygon (rel, buffer, m_options.enable_multi );
220220
221221 for (auto const &wkb : wkbs) {
222- expire.from_wkb (wkb. c_str () , -rel.id ());
222+ expire.from_wkb (wkb, -rel.id ());
223223 if (m_enable_way_area) {
224224 auto const area =
225225 m_options.reproject_area
0 commit comments