Skip to content

Possibly the fastest way to count OSM entities, does NOTHING else

Notifications You must be signed in to change notification settings

bencsikandrei/count-osm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Count OSM

Minimal dependency, fast to compile and fast to run OSM entities counter (nodes, ways, relations).

NOTE

For now, and until I have some time to move the code from there, the actual usage is under test. There is only a phony file in the include dir. All the magic happens in test.

Requires

  • g++11/clang-13 or higher
  • cmake 3.22 or higher
  • make or ninja
  • (optional) conan - helps a lot

How to configure

Assumes you have clone the repo and you have cded into it.

Conan

cmake -Sconan -Bbuild/gcc-11-Release -DCMAKE_BUILD_TYPE=Release

No conan (you have to install deps manually)

cmake -S. -Bbuild/gcc-11-Release -DCMAKE_BUILD_TYPE=Release

Advanced

Unit tests

cmake -S. -Bbuild/gcc-11-Release -DCMAKE_BUILD_TYPE=Release
    -DCOUNT_OSM_UNIT_TESTS=ON

Benchmarks

cmake -S. -Bbuild/gcc-11-Release -DCMAKE_BUILD_TYPE=Release
    -DCOUNT_OSM_BENCHMARKS=ON

Credits

Inspired by the amazing work of Stefan Karschti: https://github.com/stefankarschti/inputosm

Tricks from:

https://github.com/facebook/folly

https://github.com/mapbox/protozero

About

Possibly the fastest way to count OSM entities, does NOTHING else

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published