Some code for generating topographic contour maps.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmd
.gitignore
README.md
cache.go
contour.go
pair.go
point.go
stitch.go
tile.go
util.go

README.md

Terrarium

Some code for generating topographic contour maps. Documentation is currently lacking, so you're mostly on your own!

cmd/test/main.go will automatically fetch (and locally cache) AWS Terrain tiles and render a topographic isoline map as a PNG. You can specify a lat/lng bounding box or use a shapefile. See the top of main.go to configure this.

cmd/contours/main.go will generate contours for a grayscale input image. Again there are some constants at the top of the file that you can configure.

Examples

Colorado

Colorado

Valles Marineris on Mars

Valles Marineris