Closed mojodna closed 6 years ago
Looks good, thanks! I'd like to add some basic testing to the pbf module before integrating this. I started working on this now, but ran into problems with the metadata timestamps being different with XML and PBF: https://github.com/topobyte/osm4j-pbf/blob/909bb84ff42845e4a56b29c832076649eec72497/core/src/test/java/de/topobyte/osm4j/pbf/TestValidateWithMetadata.java#L51 I think I'll resolve this in the upcoming week and then be able to integrate your changes and upload a new version of the library to the Maven repository.
I just released version 0.1.1: http://mvn.topobyte.de/de/topobyte/osm4j-pbf/0.1.1/ which includes these changes.
Fantastic, thanks!!
Coordinates may be missing as a result of redactions or for other reasons. When absent, unscaled coordinates will be
Integer.MAX_VALUE
.Rather than storing them as
214.7483647
(scaledInteger.MAX_VALUE
), they should be represented asDouble.NaN
.To create
data-without-metadata.pbf
containing nodes with empty coordinates:To avoid creating
DenseNode
s, run: