Call-for-Code / Call-for-Code/OpenHarvest

Farmer Importing - KML to JSON

Open
#55 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.