Review fixes

This commit is contained in:
Sergey Yershov 2015-08-14 13:42:37 +03:00 committed by Alex Zolotarev
parent 8c7264b96f
commit b730fd163a
3 changed files with 6 additions and 12 deletions

View file

@ -348,9 +348,6 @@ void AddElementToCache(TCache & cache, TElement const & em)
{
case TElement::EntityType::Node:
{
// Could do something with em.id, em.lon, em.lat here
// lon and lat are ints in 1E+7 * degree units
// convert to mercator
auto const pt = MercatorBounds::FromLatLon(em.lat, em.lon);
cache.AddNode(em.id, pt.y, pt.x);
break;
@ -372,8 +369,6 @@ void AddElementToCache(TCache & cache, TElement const & em)
RelationElement relation;
for (auto const & member : em.Members())
{
// Could do something with member ref (way or node or rel id depends on type), type and
// role
if (member.type == TElement::EntityType::Node)
relation.nodes.emplace_back(make_pair(member.ref, string(member.role)));
else if (member.type == TElement::EntityType::Way)

View file

@ -3,9 +3,9 @@
#include "generator/generate_info.hpp"
#include "generator/xml_element.hpp"
#include "std/function.hpp"
#include "std/iostream.hpp"
#include "std/unique_ptr.hpp"
#include "std/function.hpp"
class SourceReader
{

View file

@ -3,14 +3,13 @@
#include "base/math.hpp"
#include "base/string_utils.hpp"
#include "std/exception.hpp"
#include "std/function.hpp"
#include "std/iomanip.hpp"
#include "std/iostream.hpp"
#include "std/map.hpp"
#include "std/string.hpp"
#include "std/vector.hpp"
#include "std/map.hpp"
#include "std/iostream.hpp"
#include "std/function.hpp"
#include "std/exception.hpp"
#include "std/iomanip.hpp"
struct XMLElement
{