Modify ↓
Opened 6 years ago
Closed 6 years ago
#18903 closed defect (irreproducible)
Polygons are exported to GeoJSON incorrectly
| Reported by: | Zverikk | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core geojson | Version: | latest |
| Keywords: | geojson | Cc: |
Description
How to reproduce:
- Create an empty layer
- Draw a closed way
- Add a natural=water tag on it
- Double-check you've got the default JOSM mappaint style on
- Save the layer as GeoJSON
- Open it to double-check the feature is saved as a polygon, not a linestring
- Open it in an external GeoJSON reader, e.g. http://geojson.io
The coordinates in the polygon geometry are not enclosed in an extra array. Instead they are stored just like for a linestring. This makes for a broken data.
I assume geojson exporting hasn't been tested by anybody because of #18902.
Attachments (1)
Change History (4)
comment:1 by , 6 years ago
comment:3 by , 6 years ago
| Resolution: | → irreproducible |
|---|---|
| Status: | new → closed |
Okay, I too cannot reproduce this on a different machine. Will reopen if I find the way. Sorry.
Note:
See TracTickets
for help on using tickets.



Cannot reproduce this. What version of JOSM are you using?