ODK Collect v2022.2 Beta: select from map, geojson datasets

Minor issue with geojson created by QGIS; my default process ofr creating a geojson file of points from scratch in QGIS creates a layer with some attributes, like so:

{
"type": "FeatureCollection",
"name": "things_with_layer_attributes",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "gid": 1, "visited": "yes" }, "geometry": { "type": "Point", "coordinates": [ 130.559803472160752, 31.580360584438704 ] } },
{ "type": "Feature", "properties": { "gid": 12, "visited": "no" }, "geometry": { "type": "Point", "coordinates": [ 130.560375586896328, 31.579278707364338 ] } }
]
}

This fails to load, with message

problem found at nodeset: /html/head/model[@xforms-version=1.0.0]/instance
with element <instance id="things" scr="jr://file/things.geojson"/>

Manually deleting the layer attributes and proceeding straight to the feature array (as below) avoids the problem; this GeoJSON works:

{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "gid": 1, "visited": "yes" }, "geometry": { "type": "Point", "coordinates": [ 130.559803472160752, 31.580360584438704 ] } },
{ "type": "Feature", "properties": { "gid": 12, "visited": "no" }, "geometry": { "type": "Point", "coordinates": [ 130.560375586896328, 31.579278707364338 ] } }
]
}
2 Likes