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

GeoJSON not working in JOSM, but at geojson.io

0

Why does this GeoJSON work at geojson.io, but not in JOSM? The link leads to Pastebin.

Probably the mistake is obvious, but I just can't see it.

asked 13 Jun '18, 14:31

Nehaj's gravatar image

Nehaj
31558
accept rate: 0%

1

what is "not working"?

(13 Jun '18, 19:03) SimonPoole ♦

JOSM changed a couple of things in their GeoJSON generation roughly two months back, and it could be that there are still issues with reading back the new output.

(13 Jun '18, 20:36) SimonPoole ♦

@SimonPoole Which revision is safe to use?

(13 Jun '18, 21:28) Nehaj

2 Answers:

1

I suspect no JOSM version will read the file currently.

You need to open an issue on the JOSM issue tracker (as it is an obvious bug that JOSM can't read files it created): http://josm.openstreetmap.de/

answered 13 Jun '18, 21:37

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 13 Jun '18, 21:38

I've had no time for this. But here is another user with this problem: https://github.com/JOSM/geojson/issues/14

(21 Jul '18, 13:27) Nehaj

0

Why has nobody noticed, that the file breaks when "properties": null ??

answered 22 Jul '18, 22:59

Druzhba's gravatar image

Druzhba
150111118
accept rate: 0%

That was already pointed out in the linked JOSM GitHub issue.

(23 Jul '18, 18:49) alester

Source code available on GitHub .