1#ifndef OSMSCOUT_IMPORT_RAWWAY_H
2#define OSMSCOUT_IMPORT_RAWWAY_H
24#include <unordered_map>
41 std::vector<OSMId> nodes;
42 FeatureValueBuffer featureValueBuffer;
59 return featureValueBuffer.GetType();
62 inline const std::vector<OSMId>&
GetNodes()
const
89 return featureValueBuffer.GetType()->GetFeatureCount();
94 return featureValueBuffer.HasFeature(idx);
99 return featureValueBuffer.GetType()->GetFeature(idx);
104 return featureValueBuffer.GetValue(idx);
109 return featureValueBuffer;
114 featureValueBuffer.Set(other);
124 template<
typename Iterator>
127 nodes.assign(first,end);
OSMId GetFirstNodeId() const
Definition RawWay.h:77
void SetNodes(const std::vector< OSMId > &nodes)
TypeInfoRef GetType() const
Definition RawWay.h:57
std::vector< Point > nodes
List of nodes.
Definition Way.h:57
size_t GetNodeCount() const
Definition RawWay.h:67
OSMId GetId() const
Definition RawWay.h:47
void SetNodes(Iterator first, Iterator end)
Definition RawWay.h:125
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 RawWay.h:92
FeatureValue * GetFeatureValue(size_t idx) const
Definition RawWay.h:102
OSMId GetNodeId(size_t idx) const
Definition RawWay.h:72
OSMId id
We are an area.
Definition ObjectRef.h:49
bool IsArea() const
Definition RawWay.h:52
const std::vector< OSMId > & GetNodes() const
Definition RawWay.h:62
void SetType(const TypeInfoRef &type, bool area)
const FeatureValueBuffer & GetFeatureValueBuffer() const
Definition RawWay.h:107
Type type
The type of the cell.
Definition GroundTile.h:92
void SetFeatureValueBuffer(const FeatureValueBuffer &other)
Definition RawWay.h:112
FeatureValueBuffer()=default
const FeatureInstance & GetFeature(size_t idx) const
Definition RawWay.h:97
void Read(const TypeConfig &typeConfig, FileScanner &scanner)
size_t GetFeatureCount() const
Definition RawWay.h:87
OSMId GetLastNodeId() const
Definition RawWay.h:82
Definition TypeFeature.h:41
int64_t OSMId
Definition OSMScoutTypes.h:33
std::unordered_map< TagId, std::string > TagMap
Definition Tag.h:41
std::shared_ptr< RawWay > RawWayRef
Definition RawWay.h:139
std::shared_ptr< TypeInfo > TypeInfoRef
Definition TypeConfig.h:61