Call-for-Code / Call-for-Code/OpenHarvest
Farmer Importing - KML to JSON
Open
- Dominant language
- TypeScript
- Stars
- 26
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
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:
1. Convert the Excel to csv (if it isn't already)
2. Map the csv farmer fields to the farmer object
3. Find that farmer's KML data
4. Use a library to convert the KML into geoJSON
5. send the farmer data and geoJSON to the `add-farmer` endpoint to convert it.
6. If we need to we can wrap the geojson with the field data.
Contributor guide
Assessment
This issue has not been assessed yet.