Libosmium
2.15.5
Fast and flexible C++ library for working with OpenStreetMap data
|
Go to the documentation of this file. 1 #ifndef OSMIUM_OSM_WAY_HPP
2 #define OSMIUM_OSM_WAY_HPP
48 template <
typename TDerived,
typename T>
49 class OSMObjectBuilder;
74 template <
typename TDerived,
typename T>
90 return osmium::detail::subitem_of_type<WayNodeList>(
begin(),
end());
94 return osmium::detail::subitem_of_type<const WayNodeList>(
cbegin(),
cend());
102 for (
auto& node_ref :
nodes()) {
103 if (node_ref.ref() == new_node_ref.
ref()) {
104 node_ref.set_location(new_node_ref.
location());
161 #endif // OSMIUM_OSM_WAY_HPP
constexpr static bool is_compatible_to(osmium::item_type t) noexcept
Definition: way.hpp:85
Definition: osm_object_builder.hpp:402
const_iterator cend() const
Definition: object.hpp:400
bool ends_have_same_location() const
Definition: node_ref_list.hpp:178
Definition: object.hpp:64
const WayNodeList & nodes() const
Definition: way.hpp:93
static constexpr osmium::item_type itemtype
Definition: way.hpp:83
WayNodeList & nodes()
Definition: way.hpp:89
void update_node_location(const NodeRef &new_node_ref)
Definition: way.hpp:101
osmium::Location & location() noexcept
Definition: node_ref.hpp:85
osmium::Box envelope() const noexcept
Definition: way.hpp:152
bool ends_have_same_location() const
Definition: way.hpp:142
Definition: node_ref_list.hpp:52
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
bool ends_have_same_id() const noexcept
Definition: way.hpp:129
static constexpr osmium::item_type itemtype
Definition: way.hpp:59
WayNodeList() noexcept
Definition: way.hpp:65
bool ends_have_same_id() const noexcept
Definition: node_ref_list.hpp:164
Way() noexcept
Definition: way.hpp:77
osmium::Box envelope() const noexcept
Definition: node_ref_list.hpp:190
constexpr static bool is_compatible_to(osmium::item_type t) noexcept
Definition: way.hpp:61
const_iterator cbegin() const
Definition: object.hpp:396
iterator begin()
Definition: object.hpp:388
iterator end()
Definition: object.hpp:392
constexpr osmium::object_id_type ref() const noexcept
Definition: node_ref.hpp:71
Definition: node_ref.hpp:50
bool is_closed() const noexcept
Definition: way.hpp:117
item_type
Definition: item_type.hpp:43
bool is_closed() const noexcept
Definition: node_ref_list.hpp:151