| 259 | } |
| 260 | |
| 261 | feature::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 | |
| 274 | void FeatureType::ParseTypes() |
| 275 | { |
no outgoing calls