Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fogleman/terrarium
Some code for generating topographic contour maps.
https://github.com/fogleman/terrarium
contours go maps topography
Last synced: about 1 month ago
JSON representation
Some code for generating topographic contour maps.
- Host: GitHub
- URL: https://github.com/fogleman/terrarium
- Owner: fogleman
- Created: 2018-02-18T20:52:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-28T19:59:28.000Z (over 3 years ago)
- Last Synced: 2024-11-10T23:37:13.677Z (about 1 month ago)
- Topics: contours, go, maps, topography
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 222
- Watchers: 4
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://aws.amazon.com/public-datasets/terrain/) 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](https://github.com/fogleman/terrarium/blob/master/cmd/test/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](https://i.imgur.com/ZzeDAAU.png)
#### Valles Marineris on Mars
![Valles Marineris](https://i.imgur.com/BHRpnQd.png)