Select one from file - geojson

Hi all!

I have a project in ODK that i´m migrating to KOBOTOOLBOX. In ODK there is a question with select_one_from_file and the file is a .geojson where you can select an option from a map. I can´t create this type of question in kobo, is there any idea when it will be implemented in kobo?

@flopezballent, could you share a sample of these files? Maybe the community should be able to help you then.

Hi @flopezballent and @Kal_Lam could you be able to solve this question? I have a similar case. I would like to attach a .geojson file in Kobo, but it only admits audio, video, image, text/csv, application/zip an mime type… According to the documentation found I could choose a geometry for a geojson.
Let me know, please if you have any news.
Thank you very much!

@dmassone1, did you mean you wish to upload a GeoJSON file under the media as you do with audio, video, or CSV files?

Yes, Exactly @Kal_Lam

Si, no se puede cargar estos archivos entonces limita las capacidades de los formularios

If you cannot upload these files then it limits the capabilities of the forms

Correct. Presently Kobo doesnt accept uploading geojson files (we hope to add this soon). In the mean time, if you are desperate you can convert your geojson data to an equivalent CSV for the purpose of using it for geo-based selection options.

For example, this is the default cities.geojson file used in the ODK all-question-types.xlsx form:

{
    "type": "FeatureCollection",
    "features": [
        {
            "type": "Feature",
            "properties": {
		"title": "Warsaw",
                "info": "Capital city of Poland",
                "id": "1"
            },
            "geometry": {
                "type": "Point",
                "coordinates": [
		    21.0122,
                    52.2297
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
		"title": "Berlin",
                "info": "Capital city of Germany",
                "id": "2"
            },
            "geometry": {
                "type": "Point",
                "coordinates": [
                    13.4050,
		    52.5200
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
		"title": "Paris",
                "info": "Capital city of France",
                "id": "3"
            },
            "geometry": {
                "type": "Point",
                "coordinates": [
                    2.3522,
                    48.8566
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
		"title": "Kyiv",
                "info": "Capital city of Ukraine",
                "id": "4"
            },
            "geometry": {
                "type": "Point",
                "coordinates": [
                    30.5234,
	            50.4501
                ]
            }
        }
    ]
}

Converted to an ostensibly equivalent CSV is:

name,label,geometry
1,Warsaw,52.2297 21.0122 0 0
2,Berlin,52.5200 13.4050 0 0
3,Paris,48.8566 2.3522 0 0
4,Kyiv,50.4501 30.5234 0 0

which you can then upload as media to use in a select_one_from_file or select_mutliple_from_file