{"id":20757287,"url":"https://github.com/piebro/map2svg","last_synced_at":"2026-04-21T11:37:11.548Z","repository":{"id":200619272,"uuid":"196033396","full_name":"piebro/map2svg","owner":"piebro","description":"A command line tool to create svg images from .osm.pbf files","archived":false,"fork":false,"pushed_at":"2019-11-11T16:46:29.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T04:43:33.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/piebro.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}},"created_at":"2019-07-09T15:13:01.000Z","updated_at":"2023-09-19T14:24:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad62ac00-41b5-4e90-8018-c8c4f3d029fc","html_url":"https://github.com/piebro/map2svg","commit_stats":null,"previous_names":["piebro/map2svg"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piebro%2Fmap2svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piebro%2Fmap2svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piebro%2Fmap2svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piebro%2Fmap2svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piebro","download_url":"https://codeload.github.com/piebro/map2svg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243066983,"owners_count":20230842,"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-17T09:41:19.432Z","updated_at":"2025-12-24T11:55:17.682Z","avatar_url":"https://github.com/piebro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Use the tool\n\n## startup\n\n1. start the postgres container with `docker-compose up -d postgres`\n\n2. copy you .osm.pbf file into the data folder (you can get them from \u003chttp://download.geofabrik.de/\u003e for example)\n\n3. import the data with `docker-compose run import-osm`\n\n## create svg\n\nto create an svg run with the wanted table, bbox and filename\n\n`node map2svg.js config-example.yaml \u003e ~/Desktop/map.svg` (for the exmaple you will need the `andorra-latest.osm.pbf` from \u003chttp://download.geofabrik.de/europe/andorra.html\u003e)\n\n## helpful\n\n### log into postgres\n\nto log into postgres db run `PGPASSWORD=openmaptiles psql -h localhost -U openmaptiles -d openmaptiles` there you can use `\\d` to check for all table and `\\d+ table_name` to check out the columns of a table\n\nrun `select * from table_name limit 1;` to checkout a table or `select ST_AsGeoJSON(ST_Transform(geometry, 4326)) from table_name limit 1;` to checkout the goemetry of a table\n\n### commen tables\n\n- osm_building_multipolygon\n- osm_building_polygon\n- osm_building_polygon_gen1\n- osm_highway_linestring\n- osm_highway_linestring_gen1\n- osm_highway_linestring_gen2\n- osm_highway_polygon\n- osm_island_polygon\n- osm_landcover_polygon\n- osm_landuse_polygon\n- osm_park_polygon\n- osm_peak_point\n- osm_railway_linestring\n- osm_water_polygon\n- osm_waterway_linestring\n\n### all possible tables\n\n- osm_aerialway_linestring\n- osm_aerialway_linestring_gen1\n- osm_aerodrome_label_point\n- osm_aeroway_linestring\n- osm_aeroway_linestring_gen1\n- osm_aeroway_linestring_gen2\n- osm_aeroway_linestring_gen3\n- osm_aeroway_polygon\n- osm_aeroway_polygon_gen1\n- osm_aeroway_polygon_gen2\n- osm_aeroway_polygon_gen3\n- osm_building_multipolygon\n- osm_building_polygon\n- osm_building_polygon_gen1\n- osm_building_street\n- osm_city_point\n- osm_continent_point\n- osm_country_point\n- osm_highway_linestring\n- osm_highway_linestring_gen1\n- osm_highway_linestring_gen2\n- osm_highway_polygon\n- osm_housenumber_point\n- osm_island_point\n- osm_island_polygon\n- osm_landcover_polygon\n- osm_landcover_polygon_gen1\n- osm_landcover_polygon_gen2\n- osm_landcover_polygon_gen3\n- osm_landcover_polygon_gen4\n- osm_landcover_polygon_gen5\n- osm_landcover_polygon_gen6\n- osm_landcover_polygon_gen7\n- osm_landuse_polygon\n- osm_landuse_polygon_gen1\n- osm_landuse_polygon_gen2\n- osm_landuse_polygon_gen3\n- osm_landuse_polygon_gen4\n- osm_landuse_polygon_gen5\n- osm_marine_point\n- osm_park_polygon\n- osm_park_polygon_gen1\n- osm_park_polygon_gen2\n- osm_park_polygon_gen3\n- osm_park_polygon_gen4\n- osm_park_polygon_gen5\n- osm_park_polygon_gen6\n- osm_park_polygon_gen7\n- osm_park_polygon_gen8\n- osm_peak_point\n- osm_poi_point\n- osm_poi_polygon\n- osm_railway_linestring\n- osm_railway_linestring_gen1\n- osm_railway_linestring_gen2\n- osm_railway_linestring_gen3\n- osm_railway_linestring_gen4\n- osm_railway_linestring_gen5\n- osm_shipway_linestring\n- osm_shipway_linestring_gen1\n- osm_shipway_linestring_gen2\n- osm_state_point\n- osm_water_polygon\n- osm_water_polygon_gen1\n- osm_water_polygon_gen2\n- osm_water_polygon_gen3\n- osm_water_polygon_gen4\n- osm_water_polygon_gen5\n- osm_water_polygon_gen6\n- osm_waterway_linestring\n- osm_waterway_linestring_gen1\n- osm_waterway_linestring_gen2\n- osm_waterway_linestring_gen3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiebro%2Fmap2svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiebro%2Fmap2svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiebro%2Fmap2svg/lists"}