Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Can't open geojson file in windows 10 #4

Closed
cronoser opened this issue Dec 19, 2016 · 5 comments
Closed

Can't open geojson file in windows 10 #4

cronoser opened this issue Dec 19, 2016 · 5 comments

Comments

@cronoser
Copy link

Hello;
I have 11223 JOSM version and when I tried to open the file Puntos kilométricos.geojson I have the error "Loading error Geojson file Puntos kilométricos.geojson"
¿anyone could said me which is the problem with that file? Is it possible to open it here instead of qgis?
Thank you very much

josm_status_report.txt
[Puntos kilométricos.zip] (https://github.com/JOSM/geojson/files/662396/Puntos.kilometricos.zip)

@naoliv
Copy link

naoliv commented Dec 20, 2016

2016-12-19 22:42:17.984 GRAVE: Error while reading json file!
2016-12-19 22:42:17.985 GRAVE: java.lang.UnsupportedOperationException: Unknown CRS LL-WGS84. Causa: org.opengis.referencing.NoSuchAuthorityCodeException: No authority was defined for code "LL-WGS84". Did you forget "AUTHORITY:NUMBER"?
java.lang.UnsupportedOperationException: Unknown CRS LL-WGS84
	at org.openstreetmap.josm.plugins.geojson.DataSetBuilder.build(DataSetBuilder.java:76)
	at org.openstreetmap.josm.plugins.geojson.GeoJsonFileImporter.importData(GeoJsonFileImporter.java:43)
	at org.openstreetmap.josm.io.FileImporter.importDataHandleExceptions(FileImporter.java:90)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:349)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:302)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:93)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:141)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.opengis.referencing.NoSuchAuthorityCodeException: No authority was defined for code "LL-WGS84". Did you forget "AUTHORITY:NUMBER"?
	at org.geotools.referencing.factory.ManyAuthoritiesFactory.noSuchAuthority(ManyAuthoritiesFactory.java:489)
	at org.geotools.referencing.factory.ManyAuthoritiesFactory.getAuthorityFactory(ManyAuthoritiesFactory.java:467)
	at org.geotools.referencing.factory.ManyAuthoritiesFactory.getCRSAuthorityFactory(ManyAuthoritiesFactory.java:548)
	at org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:801)
	at org.geotools.referencing.factory.ThreadedAuthorityFactory.createCoordinateReferenceSystem(ThreadedAuthorityFactory.java:731)
	at org.geotools.referencing.DefaultAuthorityFactory.createCoordinateReferenceSystem(DefaultAuthorityFactory.java:179)
	at org.geotools.referencing.CRS.decode(CRS.java:520)
	at org.openstreetmap.josm.plugins.geojson.DataSetBuilder.build(DataSetBuilder.java:72)
	... 11 more

@simon04
Copy link
Member

simon04 commented Dec 20, 2016

Where does the file come from? The problem is the plugin is unable to parse LL-WGS84 as CRS. I also could not find that LL-WGS84 is a valid CRS string.

Possible solutions:

  • remove "crs":{"type":"name","properties":{"name":"LL-WGS84"}}, using a text editor
  • open the file in QGIS and save it again as GeoJSON. This generates "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },

Related: #5

@cronoser
Copy link
Author

The file comes from IDERioja
The geojson file

@verdy-p
Copy link

verdy-p commented Oct 12, 2017

Edit the GeoJSON with an external text editor and specify a valid CRS, or just remove the crs (as JOSM uses WGS84 by default).
It is frequent for varioous GeoJSON producers to insert their own short "aliases" for the CRS they use internally, instead of the standard long identifiers.
For example the US National Hurricane Center (part of NOAA), publishes GeoJSONs with an unsupported alias for the CRS.
The alternative would be to add some known short aliases to the list of supported CRS.

@don-vip
Copy link
Contributor

don-vip commented Oct 15, 2018

The file comes from IDERioja
The geojson file

I am able to open this file with latest version.

@don-vip don-vip closed this as completed Oct 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants