From 0cfb6e999e3f77f98254b4a47e8ef9c258890e8d Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 20 Jan 2020 14:24:11 +0800 Subject: update --- scripts/csv2geojson | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/csv2geojson') diff --git a/scripts/csv2geojson b/scripts/csv2geojson index 085e12e..d719801 100755 --- a/scripts/csv2geojson +++ b/scripts/csv2geojson @@ -40,4 +40,6 @@ jq -s '.[0][2:] as $fields | .[1:][] | [.[0], .[1], ([$fields, .[2:]] | transpos # create array of geojson point features jq '{"type": "Feature", "properties": .[2], "geometry":{ "type": "Point", "coordinates": [(.[0] | tonumber), (.[1] | tonumber)] } }' |\ # wrap features as geojson format -jq -s '{"type": "FeatureCollection", "features": .}' +jq -s '{"type": "FeatureCollection", "features": .}' |\ +tee /tmp/geojson +echo stored into /tmp/geojson -- cgit v1.2.3-70-g09d2