OpenHarvest icon indicating copy to clipboard operation
OpenHarvest copied to clipboard

Farmer Importing - KML to JSON

Open rayoz12 opened this issue 3 years ago • 0 comments

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.

rayoz12 avatar Sep 01 '22 21:09 rayoz12