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

Method GetGeomType

libs/indexer/feature.cpp:261–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261feature::GeomType FeatureType::GetGeomType() const
262{
263 // FeatureType::FeatureType(osm::MapObject const & emo) expects
264 // that GeomType::Undefined is never returned.
265 auto const headerGeomType = static_cast<HeaderGeomType>(m_header & HEADER_MASK_GEOMTYPE);
266 switch (headerGeomType)
267 {
268 case HeaderGeomType::Line: return GeomType::Line;
269 case HeaderGeomType::Area: return GeomType::Area;
270 default: return GeomType::Point; // HeaderGeomType::Point/PointEx
271 }
272}
273
274void FeatureType::ParseTypes()
275{

Callers 15

FindCenterFunction · 0.45
ProcessMethod · 0.45
GetCandidatePointsMethod · 0.45
MakePathFunction · 0.45
ShowInfoPopupMethod · 0.45
SetFromFeatureTypeMethod · 0.45
ForEachFeatureAtPointFunction · 0.45
GetBoundingBoxAreaFunction · 0.45
CreateFromMapObjectMethod · 0.45
GetDrawRuleFunction · 0.45

Calls

no outgoing calls

Tested by 3

MakePathFunction · 0.36
is_intersectMethod · 0.36
UNIT_TESTFunction · 0.36