Closed rjw62 closed 5 years ago
This issue is fixed in https://github.com/JOSM/geojson/commit/8e1c2cc11f1fff9769f3f2ebed7c8467f3cfce62 . Thank you for reporting.
The problem was in this line, where tag values were formatted the same way as they would appear in the JSON file (i.e. strings appeared with quotes): https://github.com/JOSM/geojson/blob/9df03d8d252eaf03cd2fc689c232938e6ce8c6f0/src/main/java/org/openstreetmap/josm/plugins/geojson/GeoJsonReader.java#L249
will this be updated in the next JOSM release? I have the latest versions of both JOSM and geojson plugin and this problem still exists Thanks
This will be released the next time a release for the JOSM-plugins in the SVN repository happens.
Current (installed two days ago) plugin version 116 available in JOSM still has this problem.
According to plugin info, it still loads a version built in December 2018:
10580_Plugin-Url: 52;https://svn.openstreetmap.org/!svn/bc/33089/applications/editors/josm/dist/geojson.jar
12671_Plugin-Url: 55;https://svn.openstreetmap.org/!svn/bc/33565/applications/editors/josm/dist/geojson.jar
12678_Plugin-Url: 87;https://svn.openstreetmap.org/!svn/bc/34579/applications/editors/josm/dist/geojson.jar
Ant-Version: Apache Ant 1.10.5
Author: Ian Dees, matthieun, Larry0ua
Created-By: 1.8.0_202-b26 (Oracle Corporation)
Manifest-Version: 1.0
Plugin-Canloadatruntime: true
Plugin-Class: org.openstreetmap.josm.plugins.geojson.GeoJsonPlugin
Plugin-Date: 2018-12-28T22:12:30.000000Z
Plugin-Description: Allows you to view a GeoJSON file as a layer.
Plugin-Icon: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAACXBIWXMAAA2sAAANrAHvBsZHAAACdmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS4xLjIiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJ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ZeI4josQLKwA+nGUt51Tf0+wMzvRiAgRpRTGRNZa770QAgUivKR5G46fA/Tav0Gn27qTewAggtPh1cuS8e7/UP0/DUkXcMhhe2cAAAAASUVORK5CYII=
Plugin-Icon-Size: 48x48
Plugin-Link: https://wiki.openstreetmap.org/index.php/JOSM/Plugins/GeoJSON
Plugin-Mainversion: 14347
Plugin-Version: 116
It would be really great to have a fix for this, else I cannot use "update plugins" in JOSM.
I'm using JOSM version 14760 and GeoJSON plugin version 116 in Windows 7 with Java 1.8.0_201. I'm sure this issue didn't used to be present in some earlier versions, but I don't know when the problem first started. The problem is as follows:
When I load a GeoJSON file in JOSM, that the tag values shown in the JOSM layer (which come from the properties section of the GeoJSON objects) are all surrounding by extraneous double quotes. For example a GeoJSON object with a property value given by "amenity": "bus_station" appears in the JOSM with a key=amenity and value="bus_station" (with the double quotes as part of the value), when it should have value=bus_station.
(When saving such an imported GeoJSON file, the extra double quotes are handled correctly, so for the property above, you'd end up with "amenity": "\"bus_station\"" in the saved GeoJSON file.)