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

[closed] OSM files not loading

0
1

Recently .osm files stopped loading in JOSM. When I try to open them, I get an error message that says "No data found in file (file name)" . I am using the newest version (4487) under Windows XP. Until recently the files opened fine. I can still open the .osm in notepad and view it. I tried saving it as an .xml file but with the same result. .xml files still open fine.

asked 08 Oct '11, 18:43

nmixter's gravatar image

nmixter
1319913
accept rate: 0%

closed 07 Mar '15, 08:23

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701

The question has been closed for the following reason “Obsolete” by SimonPoole 07 Mar ‘15, 08:23


One Answer:

2

I think we'd need to see the file, as I've just opened a .osm file in version 4487 without any problems (on Windows 7). Pastebin it somewhere, perhaps?

Alternatively, download an area in JOSM, save this as a .osm file and see if it can then reopen it, to try and see whether the problem is with your other file(s).

In case it makes a difference, the .osm file I opened was created using Osmosis cutting a polygon area out of a Geofabrik extract. I have just repeated the test by downloading an area, saving as .osm, quitting JOSM, restarting JOSM and loading the .osm file without problem.

answered 09 Oct '11, 09:08

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

edited 09 Oct '11, 09:11

Source code available on GitHub .