Git Product home page Git Product logo

opendem-gebco-bathymetry's Introduction

OpenDEM GEBCO Bathymetry

OpenDEM GEBCO Bathymetry Layer on a map

This is very much experimental at this stage. Things might change without notice. Do not use in production

Convert Bathymetry Shapefiles from OpenDEM to Vectortiles in a Versatiles Container.

Depths

Zoom Depths
0-5 100, 500, 2000, 6000, 8000
6-9 50, 100, 200, 500, 1000, 1500, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000
10 25, 50, 100, 200, 250, 500, 750, 1000, 1250, 1500, 1750, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 5500, 6000, 6500, 7000, 7500, 8000, 8500, 9000, 9500

Run

sh run.sh

Requirementrs

  • curl
  • gdal
  • node or bun
  • tippecanoe
  • mapshaper
  • sqlite3
  • jq
  • versatiles

Style application

Example:

{
	"id": "bathymetry-gebco-opendem",
	"type": "fill",
	"source": "bathymetry-gebco-opendem",
	"source-layer": "bathymetry",
	"layout": {
		"visibility": "visible"
	},
	"paint": {
		"fill-opacity": 1.
		"fill-antialias": false,
		"fill-color": ["case",
			["==", ["get", "mindepth"], -25], "#0084bd",
			["==", ["get", "mindepth"], -50], "#0181ba",
			["==", ["get", "mindepth"], -100], "#017fb6",
			["==", ["get", "mindepth"], -200], "#027cb3",
			["==", ["get", "mindepth"], -250], "#0279af",
			["==", ["get", "mindepth"], -500], "#0276ac",
			["==", ["get", "mindepth"], -750], "#0374a8",
			["==", ["get", "mindepth"], -1000], "#0371a5",
			["==", ["get", "mindepth"], -1250], "#036ea1",
			["==", ["get", "mindepth"], -1500], "#036c9e",
			["==", ["get", "mindepth"], -1750], "#03699b",
			["==", ["get", "mindepth"], -2000], "#036797",
			["==", ["get", "mindepth"], -2500], "#036494",
			["==", ["get", "mindepth"], -3000], "#036191",
			["==", ["get", "mindepth"], -3500], "#035f8d",
			["==", ["get", "mindepth"], -4000], "#035c8a",
			["==", ["get", "mindepth"], -4500], "#035a87",
			["==", ["get", "mindepth"], -5000], "#025783",
			["==", ["get", "mindepth"], -5500], "#025580",
			["==", ["get", "mindepth"], -6000], "#02527d",
			["==", ["get", "mindepth"], -6500], "#025079",
			["==", ["get", "mindepth"], -7000], "#014d76",
			["==", ["get", "mindepth"], -7500], "#014b73",
			["==", ["get", "mindepth"], -8000], "#014870",
			["==", ["get", "mindepth"], -8500], "#01466c",
			["==", ["get", "mindepth"], -9000], "#004369",
			["==", ["get", "mindepth"], -9500], "#004166",
			"#0097d6"
		]
	}
}

opendem-gebco-bathymetry's People

Contributors

yetzt avatar

Watchers

Michael Kreil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.