{"id":16731633,"url":"https://github.com/missinglink/pbflint","last_synced_at":"2025-03-15T18:23:06.342Z","repository":{"id":140480171,"uuid":"65924809","full_name":"missinglink/pbflint","owner":"missinglink","description":"openstreetmap pbf file validator","archived":false,"fork":false,"pushed_at":"2016-08-18T15:00:01.000Z","size":4878,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T08:11:21.168Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/missinglink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2016-08-17T16:41:24.000Z","updated_at":"2025-01-18T11:45:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"b53b51e7-e1c3-4de1-9f87-ce5545ffd3fc","html_url":"https://github.com/missinglink/pbflint","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/missinglink%2Fpbflint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missinglink%2Fpbflint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missinglink%2Fpbflint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missinglink%2Fpbflint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/missinglink","download_url":"https://codeload.github.com/missinglink/pbflint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243771334,"owners_count":20345440,"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-10-12T23:38:15.594Z","updated_at":"2025-03-15T18:23:06.299Z","avatar_url":"https://github.com/missinglink.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\npbflint scans the contents of an openstreetmap PBF extract, checking for errors and optimizations.\n\n### Builds\n\nYou can download ready-to-go binary files for your architecture:\n\n| linux x64 | osx x64 | windows x64 | arm6 |\n|:-:|:-:|:-:|:-:|\n| [pbflint.linux.bin](https://github.com/missinglink/pbflint/blob/master/build/pbflint.linux.bin?raw=true) | [pbflint.osx.bin](https://github.com/missinglink/pbflint/blob/master/build/pbflint.osx.bin?raw=true) | [pbflint.exe](https://github.com/missinglink/pbflint/blob/master/build/pbflint.exe?raw=true) | [pbflint.arm6.bin](https://github.com/missinglink/pbflint/blob/master/build/pbflint.arm6.bin?raw=true) |\n\n### Usage\n\nSimply provide the path to the PBF extract as the first CLI argument:\n\n```bash\n$ pbflint.linux.bin /tmp/wellington_new-zealand.osm.pbf\n```\n```bash\nerror: way 93494080 invalid refcount 1\nerror: way 119134158 invalid refcount 1\n... etc\n```\n\nAll lint output is sent to `stdout`, debug info and statistics are sent to `stderr`:\n\n```bash\n$ ./pbflint.linux.bin /data/extract/new-york_new-york.osm.pbf 1\u003e/dev/null\nErrorCount: 219\nWarningCount: 175311\nTotalNodes: 9191661\nTotalWays: 1512199\nTotalRelations: 8145\nexit status 1\n```\n\nThe warning messages can be quite verbose, you can simply ignore them with a command such as:\n\n```bash\n$ ./pbflint.linux.bin /data/extract/new-york_new-york.osm.pbf | grep -v warning\n```\n\n### Exit codes\n\nThe linter will `exit(1)` if the ErrorCount is greater than 1, it will `exit(2)` on file errors and `exit(0)` otherwise.\n\n### Run the go code from source\n\nMake sure `Go` is installed and configured on your system, see: https://gist.github.com/missinglink/4212a81a7d9c125b68d9\n\n**Note:** You should install the latest version of Golang, at least `1.5+`, last tested on `1.6.2`\n\n```bash\ngo get;\ngo run pbflint.go /path/to/extract.pbf;\n```\n\n### Compile source for all supported architecture\n\nIf you are doing a release and would like to compile for all supported architectures:\n\n```bash\n./compile.sh;\n```\n\n```bash\n[compile] linux arm\n[compile] linux x64\n[compile] darwin x64\n[compile] windows x64\n```\n\n### License\n\n```\nThis work ‘as-is’ we provide.\nNo warranty express or implied.\n  We’ve done our best,\n  to debug and test.\nLiability for damages denied.\n\nPermission is granted hereby,\nto copy, share, and modify.\n  Use as is fit,\n  free or for profit.\nThese rights, on this notice, rely.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissinglink%2Fpbflint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmissinglink%2Fpbflint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissinglink%2Fpbflint/lists"}