According to the wiki page: _The way_cnt criterion selects those nodes that are members of a given number of ways. E.g. the criterion (waycnt:2) selects all crossings between ways and all nodes where two ways join.
I tested this using closed ways (building), and results look a bit unexpected.
This is what the query returns:
I would expect the following result according to the Wiki description:
Note that the result doesn't contain closed ways where the front and back node belong to the same way.
According to the wiki page: _The way_cnt criterion selects those nodes that are members of a given number of ways. E.g. the criterion (waycnt:2) selects all crossings between ways and all nodes where two ways join.
I tested this using closed ways (building), and results look a bit unexpected.
This is what the query returns:
I would expect the following result according to the Wiki description:
Note that the result doesn't contain closed ways where the front and back node belong to the same way.
Query:
I believe every node belonging to the same way may only be counted once, i.e. we need to calculate the list of distinct node ids for each way: https://github.com/mmd-osm/Overpass-API/commit/fd23189f055aa3f062b138013546d09d531571f9