{"id":19010861,"url":"https://github.com/osmcode/osmium-surplus","last_synced_at":"2025-04-22T23:22:47.270Z","repository":{"id":145468889,"uuid":"524498141","full_name":"osmcode/osmium-surplus","owner":"osmcode","description":"Collection of assorted small programs based on the Osmium framework","archived":false,"fork":false,"pushed_at":"2024-12-16T19:53:39.000Z","size":241,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-17T14:39:02.753Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osmcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-lyra.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-08-13T20:12:51.000Z","updated_at":"2024-12-16T19:53:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"32426fe9-76b0-4f70-8618-4658e0c4c95d","html_url":"https://github.com/osmcode/osmium-surplus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmcode%2Fosmium-surplus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmcode%2Fosmium-surplus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmcode%2Fosmium-surplus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmcode%2Fosmium-surplus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osmcode","download_url":"https://codeload.github.com/osmcode/osmium-surplus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250338547,"owners_count":21414205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T19:12:43.495Z","updated_at":"2025-04-22T23:22:47.234Z","avatar_url":"https://github.com/osmcode.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Osmium Surplus\n\nThis is a collection of assorted small programs based on the [Osmium\nlibrary](https://osmcode.org/libosmium). I work a lot with OSM data and over\nthe years needed a lot of different programs to create statistics, filter or\nanalyze OSM data, or process it in some other way. This is where all those\nprograms end up that are not \"large\" enough to warrant their own repository.\n\nThis repository also contains some programs moved over from earlier separate\nrepositories.\n\n## Status\n\nThe quality of these programs varies a lot. Some are reasonably polished, some\nare not much more than experiments. I don't promise any level of fitness for\nany purpose, but please do open an issue if you have a problem with any of\nthese.\n\n## Preqrequisites\n\nYou need a C++17 compliant compiler. You also need the following libraries:\n\n    Libosmium (\u003e= 2.17.0)\n        https://osmcode.org/libosmium\n        Debian/Ubuntu: libosmium2-dev\n        Fedora/CentOS: libosmium-devel\n\n    Protozero (\u003e= 1.6.3)\n        https://github.com/mapbox/protozero\n        Debian/Ubuntu: libprotozero-dev\n        Fedora/CentOS: protozero-devel\n\n    bz2lib\n        http://www.bzip.org/\n        Debian/Ubuntu: libbz2-dev\n        Fedora/CentOS: bzip2-devel\n        openSUSE: libbz2-devel\n\n    zlib\n        https://www.zlib.net/\n        Debian/Ubuntu: zlib1g-dev\n        Fedora/CentOS: zlib-devel\n        openSUSE: zlib-devel\n\n    Expat\n        https://libexpat.github.io/\n        Debian/Ubuntu: libexpat1-dev\n        Fedora/CentOS: expat-devel\n        openSUSE: libexpat-devel\n\n    fmt\n        https://fmt.dev/\n        Debian/Ubuntu: libfmt-dev\n\n    GDAL/OGR\n        https://gdal.org/\n        Debian/Ubuntu: libgdal-dev\n\n    Sqlite\n        https://sqlite.org/\n        Debian/Ubuntu: libsqlite3-dev\n        Fedora/CentOS: sqlite-devel\n\n    cmake\n        https://cmake.org/\n        Debian/Ubuntu: cmake\n        Fedora/CentOS: cmake\n        openSUSE: cmake\n\nNot all programs have all dependenices, and some programs might have additional\ndependencies.\n\nSome program use the [CLI11](https://github.com/CLIUtils/CLI11) library for\nparsing the command line. A version of this is included in the `include`\ndirectory.\n\nSome programs use the [Lyra library](https://github.com/bfgroup/Lyra) for\nparsing the command line options. It is included in the `include` directory.\n\n## Building\n\nThese programs uses CMake for their builds. On Linux and macOS you can build as\nfollows:\n\n    cd osmium-surplus\n    mkdir build\n    cd build\n    cmake ..\n    ccmake .  ## optional: change CMake settings if needed\n    make\n\nTo set the build type call cmake with `-DCMAKE_BUILD_TYPE=type`. Possible\nvalues are empty, Debug, Release, RelWithDebInfo, MinSizeRel. The\ndefault is RelWithDebInfo.\n\nPlease read the CMake documentation and get familiar with the `cmake` and\n`ccmake` tools which have many more options.\n\n## Documentation\n\nSee the [doc](doc/) directory for a list of programs and their documentation.\n\nSome additional information for the following commands detecting problems and\nanomalies in the OSM data:\n\n* osp-find-colocated-nodes\n* osp-find-orphans\n* osp-find-unusual-tags\n* osp-find-way-problems\n* osp-find-relation-problems\n* osp-find-multipolygon-problems\n\nThese programs create\n\n* one or more OSM PBF files with the data of the different anomalies they\n  detected,\n* an Sqlite file called `stats-*.db` with statistical data, and\n* a Spatialite file called `geoms-*.db` containing geometries of the\n  data detected (only for some commands).\n\nYou can use the script `scripts/collect-stats.sh` to collect the stats from\nthe various commands into one database called `stats.db`. All stats contain\na timestamp, so you can aggregate stats from, say, daily runs into one large\ndatabase.\n\nThe timestamp on the stats is the last timestamp of any object in the input\nfile. This may differ slightly between the various commands, because not all\ncommands read all object types.\n\n## Contributing\n\nContributions are welcome. Please use `clang-format` to format your changes.\n\n## Author\n\nJochen Topf (jochen@topf.org)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmcode%2Fosmium-surplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosmcode%2Fosmium-surplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmcode%2Fosmium-surplus/lists"}