Giter Site home page Giter Site logo

Render relief about cyclosm-cartocss-style HOT 6 CLOSED

cyclosm avatar cyclosm commented on June 15, 2024
Render relief

from cyclosm-cartocss-style.

Comments (6)

Phyks avatar Phyks commented on June 15, 2024 1

Actually, we can probably directly use https://github.com/der-stefan/OpenTopoMap/blob/master/mapnik/HOWTO_DEM.md. Note that relief data for the entire world should be about 500GB apparently.

from cyclosm-cartocss-style.

Phyks avatar Phyks commented on June 15, 2024 1

First basic version of hillshades based on the OpenTopoMap code is available in Phyks@b0e5c88.

I have two versions, not sure which one is better.

First option is

1

with a very strong hillshades overlay.

Second option is

2

using the OpenTopoMap approach of redrawing landuse on top of hillshades to make them softer.

What do you think?

from cyclosm-cartocss-style.

Phyks avatar Phyks commented on June 15, 2024

Useful links for this:

https://tilemill-project.github.io/tilemill/docs/guides/terrain-data/ and https://github.com/abyrd/velosm#elevation

from cyclosm-cartocss-style.

Florimondable avatar Florimondable commented on June 15, 2024

Look great !

Not sure to understand how it's rendered.
First option : render the map then add the shaded texture, so everything is shade (building, names, land...) ?
Second option : render the landuse, add the shaded texture, render the landuse, render other layers ?

For the result I prefer the first option as the contrast is higher and even in the city we can see the relief.
Eitherway we must able to see the relief in the city, it's one of the issue with opentopomap.

from cyclosm-cartocss-style.

Phyks avatar Phyks commented on June 15, 2024

First option is without the landuse_over_hillshade layer (Phyks@b0e5c88#diff-2d6c6d06f63a6fab47286addedefc335R148). Just draw the landuse, put hillshades on top, draw the rest on top.

Second option is the full commit Phyks@b0e5c88. Draw the landuse, draw hillshades on top and redraw the landuse in a lighter way on top of it.

This is what OpenTopoMap is doing, but I'm not convinced this is really useful so far https://github.com/der-stefan/OpenTopoMap/blob/master/mapnik/opentopomap.xml#L183-L201.

from cyclosm-cartocss-style.

Phyks avatar Phyks commented on June 15, 2024

Fixed :)

from cyclosm-cartocss-style.

Related Issues (20)

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.