Skip to content

Commit

Permalink
extract more global states
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Jäger committed Jul 17, 2024
1 parent 45cc703 commit b9fad6b
Show file tree
Hide file tree
Showing 4 changed files with 196 additions and 105 deletions.
12 changes: 6 additions & 6 deletions plugins/navteq/converter/AdminBoundariesConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ void AdminBoundariesConverter::convert(const std::filesystem::path &dir,
const std::filesystem::path ADMINBNDY_5_SHP = "Adminbndy5.shp";

std::map<osmium::Location, osmium::unsigned_object_id_type>
g_way_end_points_map;
way_end_points_map;

auto mtd_area_map = process_meta_areas(dir);

addLevel1Boundaries(dir, g_way_end_points_map, mtd_area_map, writer);
addLevel1Boundaries(dir, way_end_points_map, mtd_area_map, writer);

addLevelNBoundaries(dir / ADMINBNDY_2_SHP, g_way_end_points_map, mtd_area_map,
addLevelNBoundaries(dir / ADMINBNDY_2_SHP, way_end_points_map, mtd_area_map,
writer, 2);
addLevelNBoundaries(dir / ADMINBNDY_3_SHP, g_way_end_points_map, mtd_area_map,
addLevelNBoundaries(dir / ADMINBNDY_3_SHP, way_end_points_map, mtd_area_map,
writer, 3);
addLevelNBoundaries(dir / ADMINBNDY_4_SHP, g_way_end_points_map, mtd_area_map,
addLevelNBoundaries(dir / ADMINBNDY_4_SHP, way_end_points_map, mtd_area_map,
writer, 4);
addLevelNBoundaries(dir / ADMINBNDY_5_SHP, g_way_end_points_map, mtd_area_map,
addLevelNBoundaries(dir / ADMINBNDY_5_SHP, way_end_points_map, mtd_area_map,
writer, 5);
}

Expand Down
Loading

0 comments on commit b9fad6b

Please sign in to comment.