You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In OSM and OHM, we can easily access all the vertices of a way, but sometimes we need to access just the first or last vertex. For example, this query uses the first and last vertices to calculate the way’s sinuosity:
We know the position of the first vertex is zero, but we need an aggregate subquery just to determine the last position. This is much less memorable and perhaps less performant than the equivalent OverpassQL query, which can compare a vertex’s position to count_members() or count_distinct_members(). (A closed or self-intersecting way references a node more than once.) A triple about the number of vertices seems like a good complement to the existing rdf:facts triple.
These Overpass evaluators can also get the number of members in a relation, which could be convenient in some cases. However, count_distinct_by_role(…) can’t be expressed as a triple, so a subquery would be necessary anyways.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In OSM and OHM, we can easily access all the vertices of a way, but sometimes we need to access just the first or last vertex. For example, this query uses the first and last vertices to calculate the way’s sinuosity:
We know the position of the first vertex is zero, but we need an aggregate subquery just to determine the last position. This is much less memorable and perhaps less performant than the equivalent OverpassQL query, which can compare a vertex’s position to
count_members()
orcount_distinct_members()
. (A closed or self-intersecting way references a node more than once.) A triple about the number of vertices seems like a good complement to the existingrdf:facts
triple.These Overpass evaluators can also get the number of members in a relation, which could be convenient in some cases. However,
count_distinct_by_role(…)
can’t be expressed as a triple, so a subquery would be necessary anyways.Beta Was this translation helpful? Give feedback.
All reactions