| 100 | } |
| 101 | |
| 102 | FeatureID MigrateFeatureIndex(osm::Editor::ForEachFeaturesNearByFn & forEach, XMLFeature const & xml, |
| 103 | FeatureStatus const featureStatus, GenerateIDFn const & generateID) |
| 104 | { |
| 105 | switch (xml.GetType()) |
| 106 | { |
| 107 | case XMLFeature::Type::Unknown: MYTHROW(MigrationError, ("Migration for XMLFeature::Type::Unknown is not possible")); |
| 108 | case XMLFeature::Type::Node: return MigrateNodeFeatureIndex(forEach, xml, featureStatus, generateID); |
| 109 | case XMLFeature::Type::Way: |
| 110 | case XMLFeature::Type::Relation: return MigrateWayOrRelatonFeatureIndex(forEach, xml, featureStatus, generateID); |
| 111 | } |
| 112 | UNREACHABLE(); |
| 113 | } |
| 114 | } // namespace editor |
no test coverage detected