forked from organicmaps/organicmaps
Fix intermediate road access csv file format
This commit is contained in:
parent
b635196f96
commit
a54d328734
1 changed files with 3 additions and 2 deletions
|
@ -277,7 +277,8 @@ void RoadAccessTagProcessor::Process(OsmElement const & elem, ofstream & oss)
|
|||
// All feature tags.
|
||||
auto const accessType = GetAccessType(elem);
|
||||
if (accessType != RoadAccess::Type::Yes)
|
||||
oss << ToString(m_vehicleType) << " " << ToString(accessType) << " " << elem.id << 0 << endl;
|
||||
oss << ToString(m_vehicleType) << " " << ToString(accessType) << " " << elem.id << " "
|
||||
<< 0 /* wildcard segment Idx */ << endl;
|
||||
|
||||
// Barrier tags.
|
||||
for (size_t pointIdx = 0; pointIdx < elem.m_nds.size(); ++pointIdx)
|
||||
|
@ -288,7 +289,7 @@ void RoadAccessTagProcessor::Process(OsmElement const & elem, ofstream & oss)
|
|||
|
||||
// idx == 0 used as wildcard segment Idx, for nodes we store |pointIdx + 1| instead of |pointIdx|.
|
||||
oss << ToString(m_vehicleType) << " " << ToString(it->second) << " " << elem.id << " "
|
||||
<< pointIdx + 1;
|
||||
<< pointIdx + 1 << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue