topobyte / osm4j-pbf Goto Github PK
View Code? Open in Web Editor NEWPBF input/output for osm4j
PBF input/output for osm4j
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
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:
osm4j-pbf/res/proto/osmformat.proto
Line 57 in f9a9255
Software | Information |
---|---|
Operating System | OS X El Capitan |
OS Version | e.g. 10.11.6 |
java -version | e.g. 1.8.0_121 |
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.