Error when opening geojson into Google Earth Pro

Hello before I was able to open geojson (download from kobotoolbox) into Google earth pro
here the step :

  • download at gesojson format into kobotoolbox
  • copy / past the data into sublime text
  • save as geojson
  • open into google earth pro (file >open)

and now I get this error from google earth pro xxx.geojson is not a valid GeoJSON file.

do you have any idea why?

Hi @dsamba and welcome to the community!

May I ask why do you need to do steps 2 and 3, converting it to text and reconverting to geojson again?

1 Like

because after downloading the file from kobo I get a page that opens with the json content but not a file that downloads. So I copy and paste what I have on screen into sublimetext.

I used :https://geojson-validator.streamlit.app/
and here the message error :

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
    exec(code, module.__dict__)File "/mount/src/geojson-validator/streamlit-webapp/app.py", line 103, in <module>
    json_json = dict(json.loads(json_string.replace("'", '"')))File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())File "/usr/local/lib/python3.9/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)

You could try to use an automatic tool to convert the data from kobo toolbox into GeoJSON for example mapshaper.org