XLSForm / pyxform

A Python package to create XForms for ODK Collect.
BSD 2-Clause "Simplified" License
77 stars 134 forks source link

If external secondary instance has .geojson extension, use `id` as default value ref and `title` as default label ref #591

Closed lognaturel closed 2 years ago

lognaturel commented 2 years ago

The select_one_from_file spec is being expanded to include parsing geojson files. If the file specified for a select_one_from_file has extension geojson, the value ref should default to id and the label ref should default to title. These should be possible to override in the regular way (https://github.com/XLSForm/pyxform/pull/577).

The external secondary instance declaration should use the jr://file endpoint (just like XML files, unlike CSV files).

More on ODK forum.

lognaturel commented 2 years ago

@lindsay-stevens if you have a chance to look at this in the next week or two that would be great since it interacts with your recent changes from #577. Otherwise I'll take a look then.

lognaturel commented 2 years ago

@lindsay-stevens I'm starting on this now.