-
Notifications
You must be signed in to change notification settings - Fork 18
feat(cli-vector): New cli to create mbtiles for vector map. BM-1268 #3435
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
base: master
Are you sure you want to change the base?
Conversation
for (const feature of features) { | ||
writeStream.write(JSON.stringify(feature) + '\n'); | ||
} | ||
writeStream.close(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting FATAL Command:Failed err={ type=Error message=Tippecanoe Docker failed to run stack=Error: Tippecanoe Docker failed to run
. I think you need to wait for the writeStream to finish here, something like
await new Promise((resolve) => {
writeStream.close(resolve);
});
minzoom: simplify.style.minZoom, | ||
maxzoom: simplify.style.maxZoom, | ||
}; | ||
if (simplify.tolerance != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed feature.geometry != null
const feature = tag(options, line, s); | ||
if (feature == null) continue; | ||
outputCount++; | ||
features.push(JSON.parse(feature) as VectorGeoFeature); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we writeStream.write(feature + '\n');
instead of storing it in memory, hitting some oom errors when running locally
@@ -0,0 +1,31 @@ | |||
FROM node:20-slim as builder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just temporary file that I copy here as reference, we will move all the installs and ENV into package/cli Dockerfile later. Then test the vector cli in the cli container
Motivation
Modifications
Verification