MCPcopy Create free account
hub / github.com/comaps/comaps / Load

Method Load

libs/routing/geometry.cpp:127–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 void Load(uint32_t featureId, RoadGeometry & road) override
128 {
129 auto feature = m_featuresVector.GetVector().GetByIndex(featureId);
130 CHECK(feature, ());
131 feature->SetID({{}, featureId});
132 feature->ParseGeometry(FeatureType::BEST_GEOMETRY);
133
134 // Note. If FileGeometryLoader is used for generation cross mwm section for bicycle or
135 // pedestrian routing |altitudes| should be used here.
136 road.Load(*m_vehicleModel, *feature, nullptr /* altitudes */, m_attrsGetter);
137 }
138
139private:
140 FeaturesVectorTest m_featuresVector;

Callers

nothing calls this directly

Calls 4

ParseGeometryMethod · 0.80
GetByIndexMethod · 0.45
SetIDMethod · 0.45
LoadMethod · 0.45

Tested by

no test coverage detected