Code Monkey home page Code Monkey logo

parallelpbf's People

Contributors

akashihi avatar arunikirineliyagamage-tomtom avatar christianredl-tomtom avatar danielpytel-tomtom avatar dependabot[bot] avatar ivanveselovsky-tomtom avatar simon04 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

parallelpbf's Issues

Problem writing Nodes without Tags

I'm writing a tool to create country-based PBF files from the planet.pbf using parallelpbf for both reading and writing.

When Nodes without tags are writing to the country PBF file, this results in a "corrupt" file. Meaning that PBF file consumers like Osmosis, jOSM but also parallelpbf cannot read.

When in my tool I add a dummy tag to Nodes that don't have a tag the output PBF files are correct.

I think the root cause is in https://github.com/woltapp/parallelpbf/blob/master/src/main/java/com/wolt/osm/parallelpbf/encoder/DenseNodesEncoder.java where it unconditionally adds the tag delimiter. That should most likely only happen when there are tags. At least, that's what I see in the Osmosis implementation.

ParallelBinaryParser may ignore some exceptions occurring during parsing

This happens because of code in line 363 in ParallelBinaryParser :

tasksInFlight = tasksInFlight.stream().filter(f -> !f.isDone()).collect(Collectors.toList());
For a failed Future<?> method isDone() returns true, so some failed futures are lost here. Method .get() will never be invoked on them, so the failures are not anyhow propagated. Also parser execution may not be stopped on failure.

is there anything similar to WayNode Type in osm library?

hi.

The original osm dependency for Java has a type called WayNode. which is a simple nodeId with latitude and longitude of the node.

In addition to the List<Node> nodes; that each Way has, in osm library the Way type also has a List<WayNode> wayNodes;.

can you guys please add this field to the Way class or it is not possible?

Support for cancelling parsing

Hello, and thanks for the nice lib.

i wonder if there's a way to cancel parsing? For example if you're looking for some specific Node or Way, and once you found it, you don't want to continue parsing the whole thing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.