| | |
| | | vector<vector<int>> greenLines; |
| | | vector<vector<int>> triggerLines; |
| | | vector<vector<int>> redAreas; |
| | | vector<vector<int>> roadEdgeLines; |
| | | |
| | | vector<int> area; |
| | | vector<int> stopLine; |
| | | |
| | | roadEdgeLines.clear(); |
| | | stopLine.clear(); |
| | | area.clear(); |
| | | tts.clear(); |
| | |
| | | } |
| | | } |
| | | |
| | | if (itr->HasMember("road_edge_line")) { |
| | | const Value &s = (*itr)["road_edge_line"]; |
| | | |
| | | for (Value::ConstValueIterator itrLine = s.Begin(); |
| | | itrLine != s.End(); ++itrLine) { |
| | | points.clear(); |
| | | for (Value::ConstValueIterator itrPoint = (*itrLine).Begin(); |
| | | itrPoint != (*itrLine).End(); ++itrPoint) { |
| | | points.push_back((*itrPoint).GetInt()); |
| | | } |
| | | roadEdgeLines.push_back(points); |
| | | } |
| | | } |
| | | |
| | | if (itr->HasMember("area")) { |
| | | const Value &s = (*itr)["area"]; |
| | | |
| | |
| | | tts = s.GetString(); |
| | | } |
| | | |
| | | AddRoadMapParent(id, type, tts, stop_flag, redLines, redAreas, greenLines, triggerLines, area, stopLine); |
| | | AddRoadMapParent(id, type, tts, stop_flag, redLines, redAreas, greenLines, triggerLines, roadEdgeLines, area, stopLine); |
| | | } |
| | | } |
| | | } |