@@ -92,31 +92,39 @@ void create_polygon(geometry_t *geom, osmium::Way const &way);
9292/* *
9393 * Create a multilinestring geometry from a bunch of ways (usually this
9494 * would be used for member ways of a relation). The result is always a
95- * multilinestring, even if it only contains one linestring.
95+ * multilinestring, even if it only contains one linestring, unless
96+ * `force_multi` is set to false.
9697 *
9798 * If the resulting multilinestring would be invalid, a null geometry is
9899 * returned.
99100 *
100101 * \param geom Pointer to an existing geometry which will be used as output.
101- * \param ways Buffer containing all the input ways.
102+ * \param ways Buffer containing all the input ways. Object types other than
103+ * ways in the buffer are ignored.
104+ * \param force_multi Should the result be a multilinestring even if it
105+ * contains only a single linestring?
102106 */
103107void create_multilinestring (geometry_t *geom,
104- osmium::memory::Buffer const &ways ,
108+ osmium::memory::Buffer const &buffer ,
105109 bool force_multi = true );
106110
107111/* *
108112 * Create a multilinestring geometry from a bunch of ways (usually this
109113 * would be used for member ways of a relation). The result is always a
110- * multilinestring, even if it only contains one linestring.
114+ * multilinestring, even if it only contains one linestring, unless
115+ * `force_multi` is set to false.
111116 *
112117 * If the resulting multilinestring would be invalid, a null geometry is
113118 * returned.
114119 *
115- * \param ways Buffer containing all the input ways.
120+ * \param ways Buffer containing all the input ways. Object types other than
121+ * ways in the buffer are ignored.
122+ * \param force_multi Should the result be a multilinestring even if it
123+ * contains only a single linestring?
116124 * \returns The created geometry.
117125 */
118126[[nodiscard]] geometry_t
119- create_multilinestring (osmium::memory::Buffer const &ways ,
127+ create_multilinestring (osmium::memory::Buffer const &buffer ,
120128 bool force_multi = true );
121129
122130/* *
@@ -127,10 +135,10 @@ create_multilinestring(osmium::memory::Buffer const &ways,
127135 *
128136 * \param geom Pointer to an existing geometry which will be used as output.
129137 * \param relation The input relation.
130- * \param way_buffer Buffer containing all member ways.
138+ * \param buffer Buffer with OSM objects. Anything but ways are ignored .
131139 */
132140void create_multipolygon (geometry_t *geom, osmium::Relation const &relation,
133- osmium::memory::Buffer const &way_buffer );
141+ osmium::memory::Buffer const &buffer );
134142
135143/* *
136144 * Create a (multi)polygon geometry from a relation and member ways.
@@ -139,37 +147,40 @@ void create_multipolygon(geometry_t *geom, osmium::Relation const &relation,
139147 * returned.
140148 *
141149 * \param relation The input relation.
142- * \param way_buffer Buffer containing all member ways.
150+ * \param buffer Buffer with OSM objects. Anything but ways are ignored .
143151 * \returns The created geometry.
144152 */
145153[[nodiscard]] geometry_t
146154create_multipolygon (osmium::Relation const &relation,
147- osmium::memory::Buffer const &way_buffer );
155+ osmium::memory::Buffer const &buffer );
148156
149157/* *
150- * Create a geometry collection from a relation and node/way members.
158+ * Create a geometry collection from nodes and ways, usually used for
159+ * relation members.
151160 *
152161 * If the resulting geometry would be empty or invalid, a null geometry is
153162 * returned.
154163 *
155164 * \param geom Pointer to an existing geometry which will be used as output.
156- * \param relation The input relation.
157- * \param way_buffer Buffer containing all member nodes and ways.
165+ * \param buffer Buffer with OSM objects. Nodes are turned into points,
166+ * ways into linestrings, anything else in the buffer is ignored .
158167 */
159168void create_collection (geometry_t *geom,
160- osmium::memory::Buffer const &member_buffer );
169+ osmium::memory::Buffer const &buffer );
161170
162171/* *
163- * Create a geometry collection from a relation and node/way members.
172+ * Create a geometry collection from nodes and ways, usually used for
173+ * relation members.
164174 *
165175 * If the resulting geometry would be empty or invalid, a null geometry is
166176 * returned.
167177 *
168- * \param way_buffer Buffer containing all member nodes and ways.
178+ * \param buffer Buffer with OSM objects. Nodes are turned into points,
179+ * ways into linestrings, anything else in the buffer is ignored.
169180 * \returns The created geometry.
170181 */
171182[[nodiscard]] geometry_t
172- create_collection (osmium::memory::Buffer const &member_buffer );
183+ create_collection (osmium::memory::Buffer const &buffer );
173184
174185} // namespace geom
175186
0 commit comments