Skip to content

Commit

Permalink
Merge pull request #173 from tilezen/meetar/update-examples
Browse files Browse the repository at this point in the history
Update build-a-map.md
  • Loading branch information
nvkelso authored Nov 21, 2017
2 parents 121b592 + aeea14a commit 0b86765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/build-a-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The [collect.py](https://github.com/tilezen/joerd/blob/master/docs/examples/coll

Download tiles into a named local directory:

`python collect.py --bounds 37.8434, -122.3193, 37.7517, -122.0927 --zoom 12 directory/path/`
`python collect.py --bounds 37.8434 -122.3193 37.7517 -122.0927 --zoom 12 --mapzen_api_key mapzen-XXXXXXX directory/path/`


### GDAL
Expand All @@ -27,7 +27,7 @@ When [GDAL](http://www.gdal.org) is installed, the collect script can optionally

To trigger this behavior specify an output filename ending in `.tif`, `.tiff`, or `.geotiff` and **gdal_merge.py** will be called to merge all downloaded tiles into a single image (and removes the intermediate files):

`python collect.py --bounds 37.8434, -122.3193, 37.7517, -122.0927 --zoom 12 directory/path/merged_filename.tif`
`python collect.py --bounds 37.8434 -122.3193 37.7517 -122.0927 --zoom 12 --mapzen_api_key mapzen-XXXXXXX directory/path/merged_filename.tif`

GDAL includes additional analytics, hill shading, and contouring algorithms. For instance, you could run [gdaldem hillshade](http://www.gdal.org/gdaldem.html#gdaldem_hillshade) on the merged file to generate a basic hillshade. Mapbox has a great [tutorial](https://www.mapbox.com/tilemill/docs/guides/terrain-data/#creating-hillshades) with full set of options.

Expand Down

0 comments on commit 0b86765

Please sign in to comment.