-
Notifications
You must be signed in to change notification settings - Fork 434
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
Generate a single tile? #456
Comments
There is not currently a way to do this. Is the use case for clipping, for tileset updating, or something else? |
I want to use AWS Lambda to generate a single vector tile on demand from any arbitrary stream of geojson features so user requests: 0/0/0.pbf voila: serverless vector tile server it's not the most efficient way to do things, but the operations overhead is very low |
@dmfenton did you find a way to do what you wanted with lambda? That sounds cool. |
I got a tile cooker working on lambda that can return a single tile, but it has to cook the whole set first. So yes and no I guess. |
@dmfenton if your plan is to generate a single tile, an alternative could be a combination of geojson-vt (for ingesting geojson) & vt-pbf (writing JS objects into pbfs). Could be set up with a script like: var geojsonvt = require('geojson-vt');
var vtpbf = require('vt-pbf');
var tileIndex = geojsonvt(YOUR_GEOJSON_OBJECT);
var tile = tileIndex.getTile(Z, X, Y);
var buffer = vtpbf.fromGeojsonVt({ 'YOUR-LAYER-NAME': tile });
return buffer; |
The problem is that geojsonvt also cooks the whole pyramid
|
Actually this is less complicated to do directly in Tippecanoe than I thought. Does #521 do what you were looking for? |
Yes! I think it does! I'll dust off my cooker and give this a try. |
PR replaced by #529 |
Merged |
@dmfenton Did you ever get this working? |
Is there a way to just generate a single tile? E.g. 13,2343,3132.
The text was updated successfully, but these errors were encountered: