Takes care of filtering out nodes that are unimportant. More...
#include <WayNodeFilter.h>
Public Member Functions | |
WayNodeFilter () | |
virtual | ~WayNodeFilter () |
std::vector< osm::Way > | reduce_ways (std::map< osm::Way, std::multimap< osm::Node, osm::Way, osm::LtByID >, osm::LtByID > const &old_ways) |
Process ways in a batch. | |
osm::Way | process_way (osm::Way const &w, std::multimap< osm::Node, osm::Way, osm::LtByID > const &ndmap) |
Process individual way. | |
void | add_important (std::string const &key, std::string const &val) |
Add an attribute to be considered important way. |
Takes care of filtering out nodes that are unimportant.
That is there are no important ways connected to them.
Definition at line 22 of file WayNodeFilter.h.
wayred::WayNodeFilter::WayNodeFilter | ( | ) |
Definition at line 14 of file WayNodeFilter.cpp.
wayred::WayNodeFilter::~WayNodeFilter | ( | ) | [virtual] |
Definition at line 18 of file WayNodeFilter.cpp.
void wayred::WayNodeFilter::add_important | ( | std::string const & | key, |
std::string const & | val | ||
) |
Add an attribute to be considered important way.
key | |
val |
Definition at line 43 of file WayNodeFilter.cpp.
osm::Way wayred::WayNodeFilter::process_way | ( | osm::Way const & | w, |
std::multimap< osm::Node, osm::Way, osm::LtByID > const & | ndmap | ||
) |
Process individual way.
w | way to process |
ndmap | multimap which maps nodes to adjacent ways other than w |
Definition at line 32 of file WayNodeFilter.cpp.
std::vector< osm::Way > wayred::WayNodeFilter::reduce_ways | ( | std::map< osm::Way, std::multimap< osm::Node, osm::Way, osm::LtByID >, osm::LtByID > const & | old_ways | ) |
Process ways in a batch.
Keys in old_ways are the ways from which to remove nodes, values are multimaps that map nodes to other adjacent ways
old_ways |
Definition at line 22 of file WayNodeFilter.cpp.