You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to use osmtogeojson in order to upload osm data to mapbox. So I used osmtogeojson, but Mapbox says "Unknown filetype" and when I analyse any result from osmtogeojson with geojsonhint, I always get :
1:1 error Parse error on line 1:
" t y p e "
^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'INVALID'
And the data I obtained is : { "type": "FeatureCollection", "features": [ { "type": "Feature", "id": "node/1853272897", "properties": { "timestamp": "2017-03-11T12:50:59Z", "version": "4", "changeset": "46761722", "user": "sbiribizio", "uid": "354284", "name": "Capo Linaro", "natural": "cape", "wikidata": "Q3657144", "wikipedia": "it:Capo Linaro", "id": "node/1853272897" }, "geometry": { "type": "Point", "coordinates": [ 11.8357546, 42.028944 ] } } ] }
So I don't know where the problem comes from (I thought of different encodings maybe).
The text was updated successfully, but these errors were encountered:
clemosm
changed the title
Always catch error "1:1 error Parse error on line 1: " t y p e "" when analysing result with geojsonhint
Always raise error "1:1 error Parse error on line 1: " t y p e "" when analysing result with geojsonhint
May 23, 2019
I run Windows 10. I guess it's in utf-8 already because Sublime Text correctly display it when I ask "open with encoding.." (I don't know how to check otherwise; and I don't have the files at the moment). I didn't rename anything... I thought of a encoding error within osmtogeojson (like reading and writing with different encodings or a missing character Idk).
Hopefully I could finally download my dataset in smaller pieces from overpass-turbo (which also uses osmtogeojson...).
I wanted to use osmtogeojson in order to upload osm data to mapbox. So I used osmtogeojson, but Mapbox says "Unknown filetype" and when I analyse any result from osmtogeojson with geojsonhint, I always get :
And the data I obtained is :
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "id": "node/1853272897", "properties": { "timestamp": "2017-03-11T12:50:59Z", "version": "4", "changeset": "46761722", "user": "sbiribizio", "uid": "354284", "name": "Capo Linaro", "natural": "cape", "wikidata": "Q3657144", "wikipedia": "it:Capo Linaro", "id": "node/1853272897" }, "geometry": { "type": "Point", "coordinates": [ 11.8357546, 42.028944 ] } } ] }
So I don't know where the problem comes from (I thought of different encodings maybe).
The text was updated successfully, but these errors were encountered: