Giter VIP home page Giter VIP logo

Comments (4)

stirringhalo avatar stirringhalo commented on May 16, 2024

Based on https://wiki.openstreetmap.org/wiki/MinScaleDenominator amd mapnik/mapnik@219ad1f lots would need to be changed and tested to ensure it's ending up in the appropriate layer. But for now I think it should be left as is.

from openmaptiles.

ImreSamu avatar ImreSamu commented on May 16, 2024

at least, I will add a kindly warnings to the ./quickstart.sh - about this ...

echo "      : You will see a lot of deprecated warning in the log! This is normal!  "
echo "      :    like :  Mapnik LOG>  ... is deprecated and will be removed in Mapnik 4.x ... "

from openmaptiles.

stirringhalo avatar stirringhalo commented on May 16, 2024

Note to self, I think the scale_denominator = planet_meter_width/(tile_size x tiles_x_dir x standardized_pixel_size)

where planet_meter_width ~= 40075016.6855825 (need to confirm this number, might need trial and error)
tiles_x_dir = 2^zoom
standardized_pixel_size = 0.00028
tile_size = 512 (it's 512 pixels for Mapbox, 256 for common raster tiling)

Also see:
https://github.com/openstreetmap/mapnik-stylesheets/blob/master/zoom-to-scale.txt (256px tiles)
https://github.com/mapnik/mapnik/blob/master/src/scale_denominator.cpp

Open Question: How does this work for Retina, do you end up having to do an entirely different mbtiles for Retina as it's no longer zoom consistentt?

Plus, I don't think tilelive-copy even has support for scale_denominator yet.

from openmaptiles.

stirringhalo avatar stirringhalo commented on May 16, 2024

Deep dive results:

There would be a lot needed to avoid those messages, especially if we want to do more than hide them.

Basically, mapnik supports the scale_denominator args, but both tilelive and tilelive-mapnik don't seem to. I've done some experimenting here with adding support to tilelive-copy but it doesn't work as my arguments are being ignored due to the lack of support in tilelive and tilelive-mapnik. I think this is very far off, especially since v4 of Mapnik isn't even on the roadmap yet. So this is closed, especially with the warnings added by @ImreSamu to quickstart.sh.

from openmaptiles.

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.