{"id":42640871,"url":"https://github.com/spatialcurrent/go-osm","last_synced_at":"2026-01-29T06:14:50.353Z","repository":{"id":57554425,"uuid":"128679802","full_name":"spatialcurrent/go-osm","owner":"spatialcurrent","description":"OSM CLI for manipulating OSM planet files","archived":false,"fork":false,"pushed_at":"2018-08-25T12:43:34.000Z","size":76,"stargazers_count":6,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T01:59:24.765Z","etag":null,"topics":["gis","osm"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spatialcurrent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-08T20:35:23.000Z","updated_at":"2018-11-29T17:10:51.000Z","dependencies_parsed_at":"2022-09-26T18:51:19.806Z","dependency_job_id":null,"html_url":"https://github.com/spatialcurrent/go-osm","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/spatialcurrent/go-osm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-osm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-osm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-osm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-osm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spatialcurrent","download_url":"https://codeload.github.com/spatialcurrent/go-osm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-osm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28865715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T05:56:06.453Z","status":"ssl_error","status_checked_at":"2026-01-29T05:55:57.668Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["gis","osm"],"created_at":"2026-01-29T06:14:49.673Z","updated_at":"2026-01-29T06:14:50.348Z","avatar_url":"https://github.com/spatialcurrent.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-osm\n\n# Description\n\n**go-osm** is a tool for manipulating OSM planet files.  **go-osm** supports the Dynamic Filter Language (DFL).\n\n# Building\n\n```\ncd scripts\nbash build.sh\n```\n\nTo build for windows run:\n\n```\nGOOS=windows GOARCH=amd64 go build github.com/spatialcurrent/go-osm/cmd/osm\n```\n\n# Usage\n\n```\nUsage: osm -input_uri INPUT -output_uri OUTPUT [-verbose] [-dry_run] [-version] [-help]\nSupported Schemes: file, http, https, s3\nSupported File Extensions: .osm, .osm.gz\nOptions:\n  -aws_access_key_id string\n    \tDefaults to value of environment variable AWS_ACCESS_KEY_ID\n  -aws_default_region string\n    \tDefaults to value of environment variable AWS_DEFAULT_REGION.\n  -aws_secret_access_key string\n    \tDefaults to value of environment variable AWS_SECRET_ACCESS_KEY.\n  -dfl string\n    \tDFL filter\n  -drop_author\n    \tDrop author.  Synonymous to drop_uid and drop_user\n  -drop_changeset\n    \tDrop changeset attribute from output\n  -drop_relations\n    \tDrop relations from output\n  -drop_timestamp\n    \tDrop timestamp attribute from output\n  -drop_uid\n    \tDrop uid attribute from output\n  -drop_user\n    \tDrop user attribute from output\n  -drop_version\n    \tDrop version attribute from output\n  -dry_run\n    \tTest user input but do not execute.\n  -help\n    \tPrint help\n  -include_keys string\n    \tComma-separated list of tag keys to keep\n  -input_uri string\n    \tInput uri.  \"stdin\" or uri to input file.\n  -output_uri string\n    \tOutput uri. \"stdout\", \"stderr\", or uri to output file.\n  -overwrite\n    \tOverwrite output file.\n  -pretty\n    \tPretty output.  Adds indents.\n  -summarize\n    \tPrint data summary to stdout (bounding box, number of nodes, number of ways, and number of relations)\n  -summarize_keys string\n    \tComma-separated list of keys to summarize\n  -verbose\n    \tProvide verbose output\n  -version\n    \tPrints version to stdout\n  -ways_to_nodes\n    \tConvert ways into nodes for output\n```\n\n# Examples\n\nFilter Washington, DC .osm.pbf planet file to only features that include a certain tag.\n\n```shell\nosmconvert district-of-columbia-latest.osm.pbf | osm \\\n-input_uri stdin \\\n-output_uri district-of-columbia-latest-filtered-nodes-cleaned.osm \\\n-include_keys amenity,aeroway,craft,leisure,shop,station,tourism \\\n-ways_to_nodes \\\n-drop_version \\\n-drop_timestamp \\\n-drop_changeset \\\n-drop_relations \\\n-verbose\n```\n\nSummarize OSM planet file in S3 folder\n\n```shell\nAWS_DEFAULT_REGION=us-east-1 osm -input_uri s3://\u003cYOUR BUCKET\u003e/data/district-of-columbia-latest.osm.gz -summarize\nBounding Box: -77.120100,38.791340,-76.909060,38.996030\nNumber of Nodes: 1701544\nNumber of Ways: 206181\nNumber of Relations: 3198\n```\n\nBreweries in Washington, DC\n\n```\nAWS_DEFAULT_REGION=us-east-1 ./osm -input_uri s3://\u003cYOUR BUCKET\u003e/data/district-of-columbia-latest.osm.gz -summarize -ways_to_nodes -dfl '@craft like brewery' -drop_relations -output_uri breweries.osm\nTotal Number of Nodes: 5\nTotal Number of Ways: 0\nTotal Number of Relations: 0\n```\n\nBreweries \u0026 Distilleries in Washington, DC as GeoJson\n\n```\n./osm -input_uri district-of-columbia-latest.osm.bz2 -summarize -pretty -verbose -drop_relations -drop_timestamp -drop_changeset -drop_version -ways_to_nodes -include_keys craft -dfl_use_cache -dfl '(@craft like brewery) or (@craft like distillery)'  -output_uri breweries_and_distilleries.geojson -drop_tags 'dcgis:gis_id' -stream -overwrite -ways_to_nodes\n```\n\n# Contributing\n\n[Spatial Current, Inc.](https://spatialcurrent.io) is currently accepting pull requests for this repository.  We'd love to have your contributions!  Please see [Contributing.md](https://github.com/spatialcurrent/go-osm/blob/master/CONTRIBUTING.md) for how to get started.\n\n# License\n\nThis work is distributed under the **MIT License**.  See **LICENSE** file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatialcurrent%2Fgo-osm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspatialcurrent%2Fgo-osm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatialcurrent%2Fgo-osm/lists"}