Giter Club home page Giter Club logo

a-1's People

Contributors

hfu avatar naogify avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

miya0001 naogify

a-1's Issues

Reassign zoom levels

Looks like simplification breaks geometry.

Solution

Add --no-line-simplification to tippecanoe.

Before

node ~/vt-optimizer/index.js -m tiles.mbtiles
  ✔ Parsing VT file contents

Vector Tile Info
Zoom levels:  8,
Format:  pbf
Center:  39.471944,-69.005653,11
Layers: 

• area
• building
• coastline
• contour
• line
• symbol

Vector Tile Summary
Zoom level  Tiles  Total level size (KB)  Average tile size (KB)  Max tile size (KB)                                                            
----------  -----  ---------------------  ----------------------  ------------------  ----------------------------------------------------------
8           1      2.439453125            2.439453125             2.439453125         ✓                                                         
9           1      4.7373046875           4.7373046875            4.7373046875        ✓                                                         
10          2      34.9775390625          17.48876953125          31.1630859375       ✓                                                         
11          4      412.388671875          103.09716796875         235.8623046875      ☓ Error: The average tile size of this level exceeds 50KB.

image

AFTER

image

  ✔ Parsing VT file contents

Vector Tile Info
Zoom levels:  8,
Format:  pbf
Center:  39.471944,-69.005653,11
Layers: 

• area
• building
• coastline
• contour
• line
• symbol

Vector Tile Summary
Zoom level  Tiles  Total level size (KB)  Average tile size (KB)  Max tile size (KB)                                                            
----------  -----  ---------------------  ----------------------  ------------------  ----------------------------------------------------------
8           1      3.5908203125           3.5908203125            3.5908203125        ✓                                                         
9           1      7.7626953125           7.7626953125            7.7626953125        ✓                                                         
10          2      57.767578125           28.8837890625           51.5751953125       ✓                                                         
11          4      662.66796875           165.6669921875          378.5703125         ☓ Error: The average tile size of this level exceeds 50KB.

サイズ最適性確認1

pi@m330:/mnt/hdd/a-1 $ rake optimize
node ~/vt-optimizer/index.js -m tiles.mbtiles
  ✔ Parsing VT file contents

Vector Tile Info
Zoom levels:  8,
Format:  pbf
Center:  39.597473,-69.018464,16
Layers: 

• area
• building
• coastline
• contour
• line
• point

Vector Tile Summary
Zoom level  Tiles  Total level size (KB)  Average tile size (KB)  Max tile size (KB)   
----------  -----  ---------------------  ----------------------  ------------------  -
8           1      2.41015625             2.41015625              2.41015625          ✓
9           1      4.6513671875           4.6513671875            4.6513671875        ✓
10          2      33.8681640625          16.93408203125          30.177734375        ✓
11          4      51.779296875           12.94482421875          30.490234375        ✓
12          6      72.669921875           12.111653645833334      41.90234375         ✓
13          14     341.826171875          24.416155133928573      86.8935546875       ✓
14          41     965.24609375           23.542587652439025      85.2109375          ✓
15          131    1693.52734375          12.927689646946565      39.6123046875       ✓
16          477    2547.6484375           5.340982049266247       18.669921875        ✓

このサイズ分布であれば、特段の問題はないと考えます。

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.