{"id":13502942,"url":"https://github.com/dfyz/osm-renderer","last_synced_at":"2025-03-29T13:30:27.104Z","repository":{"id":43175837,"uuid":"147929947","full_name":"dfyz/osm-renderer","owner":"dfyz","description":"OpenStreetMap raster tile renderer written in Rust","archived":false,"fork":false,"pushed_at":"2025-02-10T01:17:13.000Z","size":126144,"stargazers_count":143,"open_issues_count":0,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-10T02:24:50.630Z","etag":null,"topics":["openstreetmap","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/dfyz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-09-08T12:06:06.000Z","updated_at":"2025-02-10T01:17:18.000Z","dependencies_parsed_at":"2024-10-31T22:31:40.959Z","dependency_job_id":"692a8e17-619f-438e-a39b-670a94cb7d46","html_url":"https://github.com/dfyz/osm-renderer","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/dfyz%2Fosm-renderer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfyz%2Fosm-renderer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfyz%2Fosm-renderer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfyz%2Fosm-renderer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfyz","download_url":"https://codeload.github.com/dfyz/osm-renderer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246190139,"owners_count":20737980,"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":["openstreetmap","rust"],"created_at":"2024-07-31T22:02:31.220Z","updated_at":"2025-03-29T13:30:26.045Z","avatar_url":"https://github.com/dfyz.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"An OpenStreetMap raster tile renderer that compiles to a native Windows/Linux/macOS binary with no external dependencies.\n\nYou do have to install [Rust](https://rustup.rs) to compile the binary, but other than that, all you need is an `*.xml` file with raw OSM data.\n\n## Importing data\n\nThis command takes a `city.xml` data file (get one from [Geofabrik](https://download.geofabrik.de) or a simliar service) and outputs `city.bin`, which will be used for rendering.\n\n```\n$ cargo run --release --bin importer city.xml city.bin\n```\n\n## Rendering data\n\n```\n$ cat city.conf\n[http]\naddress = localhost:8080\n\n[geodata]\nfile = city.bin\n\n[style]\nfile = mapcss/osmosnimki-minimal.mapcss\ntype = josm\n\n$ cargo run --release --bin renderer city.conf\n```\n\nRaster tiles are now being served from `http://localhost:8080/{z}/{x}/{y}.png`. This URL template should work out of the box with leaflet.js, MKTileOverlay, or any map library that supports [slippy tile layers](https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames).\n\nYou can use the `@2x` suffix to request [high-resolution tiles](https://wiki.openstreetmap.org/wiki/High-resolution_tiles) (i.e. change your URL template to `http://localhost:8080/{z}/{x}/{y}{r}.png` for leaflet.js).\n\n## Rendering sample\n\nThe rendering style is based on [MAPS.ME](https://github.com/mapsme/omim).\n\n![London centre](/samples/london_2x.png)\n\n## Caveats\n\nThe font renderer used in this project is very rudimentary, and only supports a limited number of scripts that are included in [Noto Sans](https://fonts.google.com/noto/specimen/Noto+Sans) (namely, Latin, Greek, and Cyrillic).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfyz%2Fosm-renderer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfyz%2Fosm-renderer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfyz%2Fosm-renderer/lists"}