1414#include " output.hpp"
1515
1616osmdata_t ::osmdata_t (std::shared_ptr<middle_t > mid_,
17- std::shared_ptr<output_t > const &out_,
18- std::shared_ptr<reprojection> proj)
19- : mid(mid_), projection(proj)
17+ std::shared_ptr<output_t > const &out_)
18+ : mid(mid_)
2019{
2120 outs.push_back (out_);
2221 with_extra = outs[0 ]->get_options ()->extra_attributes ;
2322}
2423
2524osmdata_t ::osmdata_t (std::shared_ptr<middle_t > mid_,
26- std::vector<std::shared_ptr<output_t > > const &outs_,
27- std::shared_ptr<reprojection> proj)
28- : mid(mid_), outs(outs_), projection(proj)
25+ std::vector<std::shared_ptr<output_t >> const &outs_)
26+ : mid(mid_), outs(outs_)
2927{
3028 if (outs.empty ()) {
3129 throw std::runtime_error (" Must have at least one output, but none have "
@@ -35,10 +33,6 @@ osmdata_t::osmdata_t(std::shared_ptr<middle_t> mid_,
3533 with_extra = outs[0 ]->get_options ()->extra_attributes ;
3634}
3735
38- osmdata_t ::~osmdata_t ()
39- {
40- }
41-
4236int osmdata_t::node_add (osmium::Node const &node)
4337{
4438 mid->nodes_set (node);
@@ -425,12 +419,12 @@ void osmdata_t::stop() {
425419 }
426420
427421 // should be the same for all outputs
428- const bool append = outs[0 ]->get_options ()-> append ;
422+ auto *opts = outs[0 ]->get_options ();
429423
430424 {
431425 // threaded pending processing
432- pending_threaded_processor ptp (
433- mid, outs, outs[ 0 ]-> get_options ()-> num_procs , append);
426+ pending_threaded_processor ptp (mid, outs, opts-> num_procs ,
427+ opts-> append );
434428
435429 if (!outs.empty ()) {
436430 // This stage takes ways which were processed earlier, but might be
@@ -449,7 +443,6 @@ void osmdata_t::stop() {
449443 // Clustering, index creation, and cleanup.
450444 // All the intensive parts of this are long-running PostgreSQL commands
451445 {
452- auto *opts = outs[0 ]->get_options ();
453446 osmium::thread::Pool pool (opts->parallel_indexing ? opts->num_procs : 1 ,
454447 512 );
455448
0 commit comments