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

how to read .osm file in java?

0

how to read .osm file in java?

asked 04 Nov '14, 00:37

learner's gravatar image

learner
1111
accept rate: 0%

edited 04 Nov '14, 00:44

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

1

what is "read .osm file in java?"? Please describe with much more words what you would like to do.

(04 Nov '14, 00:43) aseerel4c26 ♦

Also, how big a .osm file do you want to read? If it's relatively small then you can read the whole file in and process it as XML; if not then you may have to go tag-by-tag.

(05 Nov '14, 18:08) SomeoneElse ♦

One Answer:

0

Start reading at Frameworks in the OSM wiki.

There are some Java tools or libraries listed.

answered 05 Nov '14, 17:20

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

Source code available on GitHub .