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

Method ProcessFeature

generator/routing_index_generator.cpp:138–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136
137private:
138 void ProcessFeature(FeatureType & f, uint32_t id)
139 {
140 VehicleMask const mask = m_maskBuilder.CalcRoadMask(f);
141 if (mask == 0)
142 return;
143
144 m_masks[id] = mask;
145 f.ParseGeometry(FeatureType::BEST_GEOMETRY);
146
147 for (size_t i = 0; i < f.GetPointsCount(); ++i)
148 {
149 uint64_t const locationKey = PointToInt64Obsolete(f.GetPoint(i), kPointCoordBits);
150 m_posToJoint[locationKey].AddPoint(RoadPoint(id, base::checked_cast<uint32_t>(i)));
151 }
152 }
153
154 VehicleMaskBuilder const m_maskBuilder;
155 ankerl::unordered_dense::map<uint64_t, Joint> m_posToJoint;

Callers

nothing calls this directly

Calls 7

PointToInt64ObsoleteFunction · 0.85
RoadPointClass · 0.85
CalcRoadMaskMethod · 0.80
ParseGeometryMethod · 0.80
GetPointsCountMethod · 0.45
GetPointMethod · 0.45
AddPointMethod · 0.45

Tested by

no test coverage detected