This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Integrate osmosis in own Java project

0

Hey, I am using JAVA EE for developing. Now I want to extract files from an .osm file for my project. This must happen automatized, wherefore I have to integrate this part into my project.

Is there a way to integrate and use osmosis in my project or will I have to write my own parser for the .osm files?

Thanks in advance, Sebastian

asked 30 Jun '15, 01:23

conansc's gravatar image

conansc
35225
accept rate: 0%


2 Answers:

4

Osmosis can be used a library and called from within your Java code. Unfortunately, this way of using Osmosis is not yet documented well, but perhaps my example here can help you?

http://forum.openstreetmap.org/viewtopic.php?pid=213212#p213212

answered 30 Jun '15, 17:55

Tordanik's gravatar image

Tordanik
12.0k15106147
accept rate: 35%

Thank you very much! This helped me a lot.

(30 Jun '15, 19:06) conansc

0

Hello Sebastian,

maybe you can find some more hints in the OSM wiki about Frameworks.

answered 02 Jul '15, 16:24

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

Source code available on GitHub .