Skip to content
/ hydroxy Public

Mapbox RGB-DEM proxy for bathymetry 🗺💧

Notifications You must be signed in to change notification settings

vulkd/hydroxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hydroxy

Proxies Mapbox's RGB-DEM terrain tiles and modifies them with elevation data stored in redis. This isn't polished at all but hopefully should be easy enough to run and figure out how it works. See https://vulkd.com/articles/3d-underwater-maps for a full write-up. Hope it's of use to someone!

Note: util/example-frontend includes a slightly modified three-geo.

Requirements:

  • Redis or Docker to run Redis
  • Node
  • Ability run local web server (Having Python installed is fine)

Usage:

  • docker-compose -p hydroxy up - Initialize a Redis instance at 127.0.0.1:6379
  • node generatePixelCoords.js - Process and add util/example-depth-data.geojson to Redis
  • Replace $YOUR_MAPBOX_TOKEN_HERE$ in hydroxy.js
  • npm i && node hydroxy.js - Start proxy server
  • cd util/example-frontend/dist && python3 -m http.server 80" - Serve example frontend
    • util/example-frontend/config.js contains some variables to play with (restart frontend after changing)
  • http://127.0.0.1:80

About

Mapbox RGB-DEM proxy for bathymetry 🗺💧

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published