Skip to content

Instantly share code, notes, and snippets.

@psychemedia
Last active May 24, 2018 13:36
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save psychemedia/53e30d3d151fea23af68 to your computer and use it in GitHub Desktop.
OpenRefine - export template: geojson points

This OpenRefine Templating export format template will generate a geojson file containing a list of points.

Requires:

  • the name of the column containing the marker description (Place in the example);
  • a column containing numerical latitude co-ordinate values (Lat in the example);
  • a column containing numerical longitude co-ordinate values (Long in the example).

Example data:

Place,Lon,Lat
"London, UK",-0.1276597, 51.5072759
"Cambridge, UK",  0.124862, 52.2033051
"Paris, France", 2.3521334, 48.8565056
{"features": [
{"geometry":
{ "coordinates": [ {{cells["Long"].value}},
{{cells["Lat"].value}}
],
"type": "Point"},
"id": {{jsonize(cells["Place"].value)}},
"properties": {}, "type": "Feature"
}
], "type": "FeatureCollection"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment