Skip to content

Commit

Permalink
more detailed output
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Dec 12, 2010
1 parent 0ee10b6 commit 9e5960f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions osm2shp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ class handler {
}

~handler() {
std::cout << "Exported nodes: " << exported_nodes_
<< "\nExported ways: " << exported_ways_ << std::endl;
std::cout << "Total exported nodes: " << exported_nodes_
<< "\nTotal exported ways: " << exported_ways_ << std::endl;

foreach (shape_map::value_type& value, shapes_)
delete value.second;
Expand Down Expand Up @@ -497,7 +497,7 @@ class handler {
taggable_ = false;

if (++processed_nodes_ % 100000 == 0)
std::cout << processed_nodes_ << " nodes processed" << std::endl;
std::cout << processed_nodes_ << " nodes processed, " << exported_nodes_ << " nodes exported" << std::endl;

if (id_ <= 0)
return;
Expand All @@ -521,7 +521,7 @@ class handler {
taggable_ = false;

if (++processed_ways_ % 10000 == 0)
std::cout << processed_ways_ << " ways processed" << std::endl;
std::cout << processed_ways_ << " ways processed, " << exported_ways_ << " ways exported" << std::endl;

if (is_area() || nodes_.size() < 2)
return;
Expand Down

0 comments on commit 9e5960f

Please sign in to comment.