Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is there a service available for exporting georeferenced OpenStreetMap (OSM) maps in the GeoTiff format?

share|improve this question

2 Answers 2

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
  4. 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
share|improve this answer
    
Has anyone done this? I've gotten as far as producing the PNG + world file, but cannot work out how to get gdal_translate to use the world file. It looks like as of version 0.6, nik2img is supposed to produce GeoTIFF directly, but it does not appear to in my testing. –  Zach Feb 8 at 0:54

I don't know of a tool either. If you aren't comfortable at the command line, I'd download the data from OSM, load into a desktop GIS and export a GeoTiff OR use QGIS with this plugin and then create an empty Geotif for the area you are interested in and then see if you can merge the data down into the empty file. I haven't tried that in QGIS, but with some work it should be possible. You'll want to check the licensing terms for OSM before doing that.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.