OpenHarvest
OpenHarvest copied to clipboard
Farmer Importing - KML to JSON
We need a script to convert the KML to JSON and then send the data to the server's add-farmer endpoint.
Viewing a KML polygon: https://kmlviewer.nsspot.net/
Rough Steps:
- Convert the Excel to csv (if it isn't already)
- Map the csv farmer fields to the farmer object
- Find that farmer's KML data
- Use a library to convert the KML into geoJSON
- send the farmer data and geoJSON to the
add-farmerendpoint to convert it. - If we need to we can wrap the geojson with the field data.