Skip to main content
improving the final version, to include details from the links and details not otherwise specified that are necessary to complete the process
Source Link

There is no service or readily available tool that I can think of. But if you are comfortable on the command line and willing to spend some time tinkering, here is a way that can work

  1. Download the OSM shapefile.
  2. Import the shapefile to TileMill..
  3. Once you style it, export it as a georeferenced PNG.
  1. Use gdal_translate to convert it to a GeoTIFF.
  • Use gdal_translate to convert it to a GeoTiff.The following command should work: gdal_translate -of GTiff -a_srs <desired projection, probably EPSG:3857, as above> <desired file name>.png <desired file name>.tiff

There is no service or readily available tool that I can think of. But if you are comfortable on the command line and willing to spend some time tinkering, here is a way that can work

There is no service or readily available tool that I can think of. But if you are comfortable on the command line and willing to spend some time tinkering, here is a way that can work

  1. Download the OSM shapefile.
  2. Import the shapefile to TileMill..
  3. Once you style it, export it as a georeferenced PNG.
  • The following command should work once you have installed nik2img; it will produce a PNG and matching world file from your TileMill export: nik2img.py <TileMill export name>.xml <desired file name>.png -d <pixel width> <pixel height> --srs <desired projection, probably 900913> --bbox <bounding box parameters> -v -w pgw
  1. Use gdal_translate to convert it to a GeoTIFF.
  • The following command should work: gdal_translate -of GTiff -a_srs <desired projection, probably EPSG:3857, as above> <desired file name>.png <desired file name>.tiff
Source Link

There is no service or readily available tool that I can think of. But if you are comfortable on the command line and willing to spend some time tinkering, here is a way that can work