Modify

Opened 2 years ago

Last modified 14 months ago

#18804 new defect

Cannot open .JSON file

Reported by: Zverikk Owned by: team
Priority: normal Milestone:
Component: Core geojson Version: latest
Keywords: Cc:

Description

JOSM 15951 (latest atm), macOS 10.14.5.

I have a file, say borders.json, with GeoJSON contents.

I open JOSM, click "file → open", select the json... But it's grayed out, and I cannot choose it. I cannot drag a json file onto JOSM.

This is a regression from r15865. I understand some json files are not geojson — but some are. Could I please have a way of opening *.json files as geojson?

Attachments (0)

Change History (7)

comment:1 in reply to:  description Changed 23 months ago by Don-vip

Replying to Zverikk:

This is a regression from r15865. I understand some json files are not geojson — but some are. Could I please have a way of opening *.json files as geojson?

If we do that we will receive bug reports of people opening json files which are not geojson files... Why is your file not using the .geojson extension?

comment:2 Changed 23 months ago by Don-vip

Component: CoreCore geojson
Keywords: geojson removed

comment:3 Changed 23 months ago by Zverikk

For the same reason html files can have .htm and .html extension, or yaml files with .yml. It's faster to type by hand. And my experience with MS operating systems still makes me wary of spaces in file names and extensions too long.

I understand not all json files are geojson, while all geojson are json. Can you instead implement a check in the geojson core to distinguish between the two, and if failed, pass the file along? It might be useful in future for e.g. specific csv or json parsers.

comment:4 Changed 23 months ago by simon04

The comparison with html/htm and yaml/yml is not completely accurate since those extensions are synonyms.

Better examples would be docx/zip or odt/xml.

I did some testing: QGIS opens a json file as GeoJSON. LibreOffice Writer opens an xml file as document.

comment:5 Changed 23 months ago by miluethi

I have a similar problem. I'm not able to open *.json or *.geojason files since JOSM 15937

comment:6 in reply to:  5 Changed 23 months ago by Don-vip

Replying to miluethi:

I have a similar problem. I'm not able to open *.json or *.geojason files since JOSM 15937

"geojason" is not a valid extension. but "geojson" is, and should work.

comment:7 Changed 14 months ago by Stereo

Summary: Cannot open JSON file on macOSCannot open .JSON file

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to Zverikk
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.