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

Simple Command Line Interface for PBF -> atlas #88

Closed
hallahan opened this issue Feb 24, 2018 · 3 comments
Closed

Simple Command Line Interface for PBF -> atlas #88

hallahan opened this issue Feb 24, 2018 · 3 comments

Comments

@hallahan
Copy link
Contributor

Sometimes, all I need to do is make an atlas file with an OSM PBF file. Right now, I write some Java code like so:

final File pbfFile = new File(pbf);
final OsmPbfLoader loader = new OsmPbfLoader(pbfFile, MultiPolygon.MAXIMUM,
                AtlasLoadingOption.withNoFilter());
final Atlas atlas = loader.read();
final File atlasFile = new File("output.atlas");
atlas.save(atlasFile);

Instead, it would be nice to just do this from the command line and not have to write any code...

This might be already there. If so, I'm happy to add instructions to the readme.

@matthieun
Copy link
Collaborator

@hallahan Would a pre-baked script do the trick?

@hallahan
Copy link
Contributor Author

Basically, a simple CLI where you can give it an input PBF and a boundary file, and out comes atlas shards.

gitclonefun pushed a commit to gitclonefun/atlas that referenced this issue Feb 14, 2019
@lucaspcram
Copy link
Contributor

Closing this as it is addressed by command pbf2atlas added in #223

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

No branches or pull requests

3 participants