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

1 Like

thank you for your reply. I tried and it is not working as well .
What did I do :

and I do well have some Geospatial data as in kobtoolbox Map feature I can see my geopoint.

@dsamba, could you kindly share with me the following information through a private message so that I can have a closer look at your case (to see if it’s some bug):

  • Username
  • Project name
  • Server

Note: You could share with me a private message as outlined in the post discussed previously: