{"id":23291088,"url":"https://github.com/jplusplus/mapnik-styles","last_synced_at":"2026-01-20T03:31:33.215Z","repository":{"id":30919732,"uuid":"34477625","full_name":"jplusplus/mapnik-styles","owner":"jplusplus","description":"This repository contains custom styles for use with the Mapnik map rending engine, and Open StreetMap data. Mapnik can be used to create static maps, or tiles for slippy maps. These styles require an PostGIS database with Open StreetMap data to render. The repo comes with some complimentary  shapefiles, some of which have unclear licences. The repo is therefore private.","archived":false,"fork":false,"pushed_at":"2015-06-03T09:49:43.000Z","size":65356,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-04-14T04:55:28.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PLpgSQL","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/jplusplus.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}},"created_at":"2015-04-23T19:42:08.000Z","updated_at":"2021-01-26T19:31:49.000Z","dependencies_parsed_at":"2022-09-03T22:10:59.252Z","dependency_job_id":null,"html_url":"https://github.com/jplusplus/mapnik-styles","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/jplusplus%2Fmapnik-styles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplusplus%2Fmapnik-styles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplusplus%2Fmapnik-styles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplusplus%2Fmapnik-styles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jplusplus","download_url":"https://codeload.github.com/jplusplus/mapnik-styles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526675,"owners_count":20953141,"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-12-20T05:14:05.466Z","updated_at":"2026-01-20T03:31:33.189Z","avatar_url":"https://github.com/jplusplus.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mapnik-styles\nThis repository contains custom styles for use with the Mapnik map rending engine, and Open StreetMap data.\n\nMapnik can be used to create static maps, or tiles for slippy maps. These styles require an PostGIS database with Open StreetMap data to render.\n\nThe repo comes with some complimentary shapefiles, some of which have unclear licences, and with some default J++ server setups. The repo is therefore private.\n\n##Styles\nEach style consists of a OSM XML file that may reference images in the `patterns` and `symbols` folders, shapefiles in the `shapes` folder, and tables in the PostGIS database. \n\n### OSM Bright\nThis is our clone of [mapbox/osm-bright](https://github.com/mapbox/osm-bright), a great general purpose map.\n\nUse `osm2pgsql` to populate a PostGIS database called `gis`, and you are good to go. Try it with Nik4:\n\n    nik4.py  -b 12.54 56.6 13.6 56.8 --size-px 800 400 osm-bright.xml test.png\n\n\n###Toner Light\nThis is our clone of the [Stamen Toner](https://github.com/stamen/toner-carto) variety *Toner Light*, for when you want the data to speak, and the map to shut up.\n\nUse `imposm3` to populate a PostGIS database called `imposm`, run the [modified High Road SQL script](https://github.com/stamen/toner-carto/blob/master/sql/functions/highroad.sql), and you are good to go. Try it with Nik4:\n\n    nik4.py  -b 12.54 56.6 13.6 56.8 --size-px 800 400 toner-lite.xml test.png\n\nHere is an `imposm3` example:\n\n    imposm3 import -mapping toner-light_imposm3_mapping.json -connection postgis://ubuntu:ubuntu@localhost/imposm -read ../planet/sweden-latest.osm.pbf -write -deployproduction\n\n    export PGPASSWORD ubuntu\n    psql -h localhost -d imposm -U ubuntu -p 5432 -f sql/highroad.sql -a\n\n\n##Setting up the server\nTo fetch all OSM data and extract it while downloading (quickest):\n\n    wget -O - ftp://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/planet/planet-latest.osm.bz2 | bzcat \u003eplanet_latest.osm\n\n##Scripts\nUse `scripts/render.sh` to batch create maps from a set of bbox'es. Each line in the bbox file should look like this:\n\n    17.48112 59.6994126 17.80112 60.0194126 Uppsala\n\nThe script will then create an optimized png file called $width/Uppsala.png, covering this area.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjplusplus%2Fmapnik-styles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjplusplus%2Fmapnik-styles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjplusplus%2Fmapnik-styles/lists"}