15class Features :
public FeaturesBase<Feature>
18 using FeaturesBase::FeaturesBase;
20 FeaturesBase(rootView(golFile))
25 Features(
const FeaturesBase<T>& other) :
26 FeaturesBase(other.view_)
33 Nodes
nodes()
const {
return Nodes(view_ & FeatureTypes::NODES); };
41 Nodes
nodes(
const char* query)
const
43 return Nodes(view_.withQuery(query, FeatureTypes::NODES));
45 Ways
ways()
const {
return Ways(view_ & FeatureTypes::WAYS); }
46 Ways
ways(
const char* query)
const
48 return Ways(view_.withQuery(query, FeatureTypes::WAYS));
50 Relations
relations()
const {
return Relations(view_ & FeatureTypes::RELATIONS); }
51 Relations
relations(
const char* query)
const
53 return Relations(view_.withQuery(query, FeatureTypes::RELATIONS));
57 Nodes
nodesOf(FeatureBase<P>)
const;
60 FeaturesBase
parentsOf(FeatureBase<P> feature)
const
62 if(view_.types() & (FeatureTypes::WAYS | FeatureTypes::RELATIONS))
66 return FeaturesBase(empty());
Features(const char *golFile)
Creates a collection that contains all features in the given Geographic Object Library.
Ways ways() const
Only ways.
Features nodesOf(const Feature &feature) const
Only nodes that belong to the given Way.
Relations relations() const
Only relations.
Features parentsOf(const Feature &feature) const
Only features that are parent relations of the given Feature (or parent ways of the given Node).
Nodes nodes() const
Only nodes.