This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

osmium tool. count statistics within bounding box.

0

hello everyone, im trying to get some statistics data.count.nodes|ways|relations within bounding box utilizing osmium tool.

I know, I can extract box first then count the statistics, however this options is extremely time consuming.

Thanks, Vlad

asked 22 Apr '22, 19:37

lemba's gravatar image

lemba
11111
accept rate: 0%


One Answer:

0

If you want to use the existing commandline tool then no, what you want is not possible and does require two steps (which should not be so time consuming since you'd be loading only little data in the 2nd step). You can however code your own statistics program with the osmium library (in C++) or, if you are more comfortable with that, pyosmium.

answered 23 Apr '22, 20:52

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .