Modify

Opened 5 years ago

Last modified 4 years 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)

in reply to:  description comment:1 by Don-vip, 5 years ago

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 by Don-vip, 5 years ago

Component: CoreCore geojson
Keywords: geojson removed

comment:3 by Zverikk, 5 years ago

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 by simon04, 5 years ago

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 by miluethi, 5 years ago

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

in reply to:  5 comment:6 by Don-vip, 5 years ago

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 by Stereo, 4 years ago

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. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to Zverikk.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


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