Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector mbtiles schema #67

Closed
edpop opened this issue Jan 21, 2017 · 4 comments
Closed

Vector mbtiles schema #67

edpop opened this issue Jan 21, 2017 · 4 comments

Comments

@edpop
Copy link

edpop commented Jan 21, 2017

Hello.
When a user makes .mbtiles by the tippecanoe tool, it creates just one table - tiles.
But I can't stream any data into this file because of the putTile method uses other tables (map and images), and also can't create a new file with this specification by mbtiles library.
I guess we need to wait for 2.0 spec?

@e-n-f
Copy link

e-n-f commented Jan 23, 2017

I'm not sure how the vector tile 2.0 spec will help with this. If you have two tilesets and want to combine them, you can use tile-join to combine the features from both tilesets into one new one.

@edpop
Copy link
Author

edpop commented Jan 23, 2017

I mean, there is no way to work with other schema, than this one, where tiles table is a view. I made vector mbtiles by tilelive-http + mbtiles, it worked, but pbf format is not permitted in current spec, also this schema is more optimized (one table vs 2 tables + view).

@e-n-f
Copy link

e-n-f commented Jan 23, 2017

The only reason Tippecanoe creates tiles as a table rather than as a view is because I just copied the SQL from mb-util and that's what it does. If it would be more useful to have it be a view, I can change it to be a view.

@edpop
Copy link
Author

edpop commented Jan 24, 2017

No, personally I don't see any reason for this deoptimization, especially I don't see tables map, images and grid* in a spec. I thought, that vector tiles will have a different scheme, than this and a current lib (mbtiles) should have a some option like type (pbf) or/and version to determine tables schema and some methods as putTile() accordingly.

@edpop edpop closed this as completed Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants