Code Monkey home page Code Monkey logo

Comments (7)

kkaefer avatar kkaefer commented on July 25, 2024

Changing the file format could potentially work without backwards compatibility issues. SQLite3 allows inserting arbitrary data into a column; the column type is merely an affinity, not a strict rule.

from mbtiles-spec.

kkaefer avatar kkaefer commented on July 25, 2024

I rekeyed world-light and got savings of about 83 MB, bringing it from 1219 MB to 1136 MB, and about 7% savings. The resulting file still works in Tilestream. With interactivity, the savings are a lot bigger. Since there are a lot more columns that use a long hash.

from mbtiles-spec.

kkaefer avatar kkaefer commented on July 25, 2024

Also rekeying interactivity, a small sample file I used is now only 80% of the original size (881 to 700 KB). Still works in Tilestream.

from mbtiles-spec.

kkaefer avatar kkaefer commented on July 25, 2024

Declaring id columns as INTEGER PRIMARY KEY further reduces the file size to 78% of the original file size (881 to 688 KB).

from mbtiles-spec.

tmcw avatar tmcw commented on July 25, 2024

Does this need to be within mbtiles-spec or are the particulars of TileMill's keying just a TileMill issue?

from mbtiles-spec.

kkaefer avatar kkaefer commented on July 25, 2024

This is a TileMill issue. There's an mbrekey command in node-mbtiles that changes the keys in a file; there's nothing in the spec that mandates keys I believe.

from mbtiles-spec.

tmcw avatar tmcw commented on July 25, 2024

All right, moved - https://github.com/mapbox/tilemill/issues/758

from mbtiles-spec.

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.