Giter Site home page Giter Site logo

bathymetryviewer_cog's Introduction

OpenLayers with Vector Tiles and Cloud Optimized Tiffs (COG)

www.opendem.info/bathymetryviewer_cog.html

To get rid of backend components (database, mapservers, web application containers) modern geodata formats like Vector Tiles and Cloud Optimized Tiffs (COG) were tested.

Bathymetry COG is a derived product from the GEBCO 2021 Grid, made with NaturalEarth.

Marine labels and countries were made with NaturalEarth.

Cloud Optimized Tiffs (COG)

The COG used has one band with a colour palette. Unfortunately, this was not used out of the box.

The use of style expression with 'match' leads to artefacts at the edges of the classification (image below).

expression match

Figure 1: Rendering the image with a match expression

This is why the style expression 'interpolate' was used here.

expression interpolate

Figure 2: Rendering the image with a interpolate expression

In the higher zoom levels, most of it looks very smooth, but there are also artefacts like in Figure 2. In this case, I would have preferred the pixelated display to better reflect the spatial resolution.

Both style expressions are available in main.js for testing.

Vector Tiles - Countries

Vector tiles were made with GDAL. Have a look at the OpenDEMsearcher GitHub Repo for more information about Vector Tile processing.

Vector Tiles - Contour lines with labels

At the higher zoom levels vector tiles were used with labels along the lines. Unfortunately, the labels are not rendered in all regions.

vector tile labels

Only level 11 was processed for the contour lines to save hard disc space. However, the geometries also match the display in the WMS in the larger zoom levels.

GeoJson - Marine Areas Labels

Out-of-the-box labels of polygon GeoJson layers are only rendered at the centre of the polygon. A polygon to point conversion for a GeoJson layer has now simply been carried out here to save resources. The scale was taken into account during rendering.

Conclusion

Compared to backend-based standard services, modern technologies without a backend may not be quite as advanced, but they have great potential.

The map client can be compared directly with the standard WMS applications:

bathymetryviewer_cog's People

Contributors

opendem avatar

Watchers

 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.