1#ifndef OSMSCOUT_IMPORT_RAWNODE_H
2#define OSMSCOUT_IMPORT_RAWNODE_H
24#include <unordered_map>
43 FeatureValueBuffer featureValueBuffer;
56 return featureValueBuffer.GetType();
66 return coord.GetLat();
71 return coord.GetLon();
76 return featureValueBuffer.GetType()->GetFeatureCount();
81 return featureValueBuffer.HasFeature(idx);
86 return featureValueBuffer.GetType()->GetFeature(idx);
91 return featureValueBuffer.GetValue(idx);
96 return featureValueBuffer;
106 return coord==other.coord;
111 return id==other.id ||
coord==other.coord;
void UnsetFeature(size_t idx)
TypeInfoRef GetType() const
Definition RawNode.h:54
const GeoCoord coord
Definition RouteStateAgent.h:49
OSMId GetId() const
Definition RawNode.h:49
void SetCoord(const GeoCoord &coord)
void Parse(TagErrorReporter &errorReporter, const TagRegistry &tagRegistry, const TagMap &tags)
void Write(const TypeConfig &typeConfig, FileWriter &writer) const
bool HasFeature(size_t idx) const
Definition RawNode.h:79
FeatureValue * GetFeatureValue(size_t idx) const
Definition RawNode.h:89
const GeoCoord & GetCoords() const
Definition RawNode.h:59
double GetLat() const
Definition RawNode.h:64
OSMId id
We are an area.
Definition ObjectRef.h:49
double GetLon() const
Definition RawNode.h:69
bool IsIdentical(const RawNode &other) const
Definition RawNode.h:99
const FeatureValueBuffer & GetFeatureValueBuffer() const
Definition RawNode.h:94
Type type
The type of the cell.
Definition GroundTile.h:92
bool IsEqual(const RawNode &other) const
Definition RawNode.h:109
void SetType(const TypeInfoRef &type)
bool IsSame(const RawNode &other) const
Definition RawNode.h:104
FeatureValueBuffer()=default
const FeatureInstance & GetFeature(size_t idx) const
Definition RawNode.h:84
void Read(const TypeConfig &typeConfig, FileScanner &scanner)
size_t GetFeatureCount() const
Definition RawNode.h:74
Definition TypeFeature.h:41
int64_t OSMId
Definition OSMScoutTypes.h:33
std::shared_ptr< RawNode > RawNodeRef
Definition RawNode.h:130
std::unordered_map< TagId, std::string > TagMap
Definition Tag.h:41
std::shared_ptr< TypeInfo > TypeInfoRef
Definition TypeConfig.h:61