8000 feat(cli-vector): New cli to create mbtiles for vector map. BM-1268 by Wentao-Kuang · Pull Request #3435 · linz/basemaps · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Wentao-Kuang
Copy link
Contributor

Motivation

Modifications

Verification

@Wentao-Kuang Wentao-Kuang changed the title feat(cli-vector): New cli to create mbtiles for vector map. BM1268 feat(cli-vector): New cli to create mbtiles for vector map. BM-1268 Apr 28, 2025
for (const feature of features) {
writeStream.write(JSON.stringify(feature) + '\n');
}
writeStream.close();
Copy link
Contributor

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) {
Copy link
Contributor

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);
Copy link
Contributor

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0