Git Product home page Git Product logo

osm4j-pbf's Introduction

Repository moved

This content of this repository has been merged into topobyte/osm4j, a single repository for all osm4j modules.

About

This is the osm4j module for reading and writing OSM data in the PBF format.

Have a look at the main osm4j repository or the project homepage for information about the library osm4j in general.

License

This library is released under the terms of the GNU Lesser General Public License.

See LGPL.md and GPL.md for details.

Third party code

The code in the crosby.binary packages from Scott A. Crosby has been imported from this repository:

https://github.com/scrosby/OSM-binary

Which is released under the LGPL.

Hacking

Generating the protocol buffers source

protoc --java_out lite:core/src/gen/java res/proto/*
protoc --java_out full/src/gen/java res/proto/*

osm4j-pbf's People

Contributors

mojodna avatar sebkur avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

osm4j-pbf's Issues

Add osmosis_replication_* properties to HeaderBlock

The HeaderBlock proto definition currently does not include the osmosis_replication_timestamp, osmosis_replication_sequence_number, and osmosis_replication_base_url properties as specified here:

https://wiki.openstreetmap.org/wiki/PBF_Format#Definition_of_the_OSMHeader_fileblock

These fields are useful for tracking what an OSM history or snapshot PBF contains, and how to update it with diff files.

This should be a matter of adding the appropriate proto definition here:

message HeaderBlock {

Discrepancy between geometry produced by osm4j and the original osm one

Versions

Software Information
Operating System OS X El Capitan
OS Version e.g. 10.11.6
java -version e.g. 1.8.0_121

Description

When using osm4j I notice a discrepancy between the geometry provided by it and the original from osm. As you can see in the screenshot they differ. It happens with all the shapes and the overlapping between them never matches.

Error log

This is a screenshot I took when opening the pbf from geofabrik and the result from osm4j on QGIS. The green is from osm4j and the brown the original.

screen shot 2018-05-08 at 12 32 35

Version of protobuf

Hi,

I'm using your wonderful libraries with Protobuf also.
Anyway, I'm interested in using the "oneof" feature of the version 2.6.1 of protobuf but I'm facing some issues as it is impossible to mix two different versions of Protobuf at the same time.

Please, if would you mind using the most recent version of protobuf ?

Many thanks for your help,

Best regards,

Alain

update to protobuf 3.4.0

I am using osm4j in a project that has a dependency to com.google.protobuf:protobuf-java:3.4.0 which causes some trouble. Could you update to version 3.4.0?

See also #1

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.