Skip to content

Instantly share code, notes, and snippets.

@psychemedia psychemedia/README.md
Last active May 24, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.