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

Reading changesets #10

Open
sdicke opened this issue Jan 12, 2023 · 2 comments
Open

Reading changesets #10

sdicke opened this issue Jan 12, 2023 · 2 comments

Comments

@sdicke
Copy link

sdicke commented Jan 12, 2023

Is there a way to read changes from changesets with osm4j? I searched for a way and tried to read them with EntityContainer, but it seams that there is no type available and any serialisation try failed with no generated output.

@sebkur
Copy link
Member

sebkur commented Jan 12, 2023

Hey @sdicke, yes it's possible, but you need to use the replication module of the library: https://github.com/topobyte/osm4j/tree/master/replication

This is the Maven artifact: https://mvn.topobyte.de/de/topobyte/osm4j-replication/1.0.0/

Unfortunately, I don't have a public project lying around that's using it that I can share and haven't gotten to write example code. There is some testing code though in https://github.com/topobyte/osm4j/tree/master/replication/core/src/test/java/de/topobyte/osm4j and it's probably best to currently learn about how to use that part of the library by looking at the examples.

You can either run ./gradlew cleanEclipse eclipse and import the whole project into Eclipse or just open the project using IntelliJ. Make sure to always open the root project and not just the replication module.

@sdicke
Copy link
Author

sdicke commented Jan 12, 2023

Thank you for your answer. I will try it.

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

No branches or pull requests

2 participants