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:

  1. Create an empty layer
  2. Draw a closed way
  3. Add a natural=water tag on it
  4. Double-check you've got the default JOSM mappaint style on
  5. Save the layer as GeoJSON
  6. Open it to double-check the feature is saved as a polygon, not a linestring
  7. 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)

closed.geojson (1.5 KB ) - added by GerdP 6 years ago.
file produced with r15937

Download all attachments as: .zip

Change History (4)

comment:1 by GerdP, 6 years ago

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

comment:2 by Zverikk, 6 years ago

Latest, 16106. Will check again.

by GerdP, 6 years ago

Attachment: closed.geojson added

file produced with r15937

comment:3 by Zverikk, 6 years ago

Resolution: irreproducible
Status: newclosed

Okay, I too cannot reproduce this on a different machine. Will reopen if I find the way. Sorry.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.