Coder Social home page Coder Social logo

Comments (8)

msbarry avatar msbarry commented on May 19, 2024 1

Hello! That would probably be doable for some sources, for example natural earth and water polygons but any low zoom features rendered from OSM won't show up.

I think this would require a new config attribute, and a logic tweak in SimpleReader to not filter geometries when reading, and also a tweak to how TileExtents computes the tile x/y range limits by zoom level when that attribute is specified.

I'm working on a few other tasks first so it might be some time before I could take a look at this, but I'd be happy to review a PR.

As a workaround you can run with --bounds=planet to generate the whole planet for all zoom levels but only OSM details from your extract. Or to save space, run planetiler a second time with --bounds=planet --maxzoom=5 and combine the two mbtiles with a tool like tilelive-copy.

from planetiler.

caspg avatar caspg commented on May 19, 2024 1

@msbarry Thanks for the reply. I'm afraid I won't be able to help with development since I know nothing about Java 😬

I will try to play with suggested workarounds though.

from planetiler.

caspg avatar caspg commented on May 19, 2024

Merging two mbtiles using tilelive-copy gave me broken results (empty tiles) but it looked ok using tile-join (from https://github.com/mapbox/tippecanoe). It saves space but tileserver is returning empty tiles after zoom level 5.

Generating tiles with --bounds=planet gives better results IMO. It allows moving around the map and zoom everywhere. Of course, detailed tiles are returned only for the specific region. Low details tiles for the whole planet add around 25GB to the output.mbtiles.

from planetiler.

msbarry avatar msbarry commented on May 19, 2024

Responded in slack - tilelive-copy is probably messing with the metadata. You may need to manually ensure that minzoom=0, maxzoom=14, bounds=-180,-90,180,90 when you combine using tilelive-copy

from planetiler.

makidoll avatar makidoll commented on May 19, 2024

Thank you so much for this awesome program. I'm so happy it exists and I'd love to give support if I could.

I was looking at this too after I generated a planet mbtiles file yesterday. I'm extremely pleased with the results, however comparing my output with MapTiler, it's missing some low zoom details I wish I'd have. In the meantime I'll look around for a solution. I know OSM Liberty adds in some natural earth relief tiles hosted on GitHub, but they're not as pretty.

Planetiler:
image

MapTiler:
image

from planetiler.

msbarry avatar msbarry commented on May 19, 2024

Thanks for reaching out @makitsune! For onthegomap I use natural earth 2 shaded relief - it looks ok but a vector style would be nicer. I'm trying to keep planetiler compatilble with open-source openmaptiles by default, but it's fine to add changes you can opt-into with command-line flags. My understanding is that maptiler's global landcover data is a proprietary dataset, any idea if an open alternative might exist elsewhere?

from planetiler.

acalcutt avatar acalcutt commented on May 19, 2024

@makitsune

In my map style at wifidb.net I added a raster layer behind the planetiler map that looks like this
https://tiles.wifidb.net/data/jaxa_color/#1.32/50.3/-48.7

Which I can then merge into my style like this
https://tiles.wifidb.net/styles/WDB_OSM/#1.19/29.3/-54

I generated my color relief using gdaldem. Right now I have a copy under jaxa_color.mbtiles here ( https://drive.google.com/drive/folders/1Uo5xyFd8it7UH3pSmBiWP4lfZdM9OmhA?usp=sharing ) though I am trying to regenerate them without a missing chunk of greenland (currently working on this)

from planetiler.

acalcutt avatar acalcutt commented on May 19, 2024

I just wanted to let you know, I finally updated my raster color-relief mbtiles if you are still looking for something. I've updated all my full planet mbtiles made from the JAXA DEM images and put them on my google drive if anyone is interested. They can be downloaded here https://drive.google.com/drive/folders/1Uo5xyFd8it7UH3pSmBiWP4lfZdM9OmhA?usp=sharing

jaxa_terrainrgb.mbtiles - Is a full planet TerrainRGB file made with gdal and rio rgbify. This can be used with the new terrain features of maplibre or with the older hillshade features. (example here).

jaxa_color.mbtiles - A full planet color relief map created using gdaldem color-relief (example here)

jaxa_hillshade.mbtiles - A full planet hillshade map created with gdaldem hillshade. I preferer to use the TerrainRGB dynamic hillshade over this file, but I updated it anyway. (example here)

As you can see from the examples above, I have fixed the missing chunk of Greenland that the last version of these files had.

from planetiler.

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.