Skip to content

Instantly share code, notes, and snippets.

@Jmuccigr
Created June 3, 2021 20:11
Show Gist options
  • Save Jmuccigr/61b1009f0ddfab78fbe18b988c750995 to your computer and use it in GitHub Desktop.
Save Jmuccigr/61b1009f0ddfab78fbe18b988c750995 to your computer and use it in GitHub Desktop.
OpenRefine geoJSON export values for templating

Prefix

{
"type": "FeatureCollection",
"features": [

Row Template

    {
      "type": "Feature",
      "geometry": {
           "coordinates": [ {{cells["Longitude"].value}}, {{cells["Latitude"].value}} ],
           "type": "Point"
           },
      "properties": {
           "name": {{jsonize(cells["Name"].value)}}
           }
    }

Row Separator

,

Suffix


    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment