diff options
-rw-r--r-- | alias | 5 | ||||
-rwxr-xr-x | scripts/csv2geojson | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -49,13 +49,16 @@ alias ld='cd -' # last directory | |||
49 | cdg(){ | 49 | cdg(){ |
50 | cd ~/git/$1 | 50 | cd ~/git/$1 |
51 | } | 51 | } |
52 | alias cdgg='cd ~/git/gist' | ||
53 | alias cda='cd ~/data' | 52 | alias cda='cd ~/data' |
54 | alias cdd='cd ~/Downloads' | 53 | alias cdd='cd ~/Downloads' |
55 | alias cdD='cd ~/Documents' | 54 | alias cdD='cd ~/Documents' |
56 | alias cdV='cd ~/Videos' | 55 | alias cdV='cd ~/Videos' |
57 | alias cdP='cd ~/Pictures' | 56 | alias cdP='cd ~/Pictures' |
58 | 57 | ||
58 | # gist | ||
59 | alias gn='gist new' | ||
60 | alias cdgg='cd ~/git/gist' | ||
61 | |||
59 | # about custom settings | 62 | # about custom settings |
60 | alias cds='cd $SETTING_DIR' | 63 | alias cds='cd $SETTING_DIR' |
61 | alias cdss='cd $SETTING_DIR/scripts' | 64 | alias cdss='cd $SETTING_DIR/scripts' |
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 | |||
40 | # create array of geojson point features | 40 | # create array of geojson point features |
41 | jq '{"type": "Feature", "properties": .[2], "geometry":{ "type": "Point", "coordinates": [(.[0] | tonumber), (.[1] | tonumber)] } }' |\ | 41 | jq '{"type": "Feature", "properties": .[2], "geometry":{ "type": "Point", "coordinates": [(.[0] | tonumber), (.[1] | tonumber)] } }' |\ |
42 | # wrap features as geojson format | 42 | # wrap features as geojson format |
43 | jq -s '{"type": "FeatureCollection", "features": .}' | 43 | jq -s '{"type": "FeatureCollection", "features": .}' |\ |
44 | tee /tmp/geojson | ||
45 | echo stored into /tmp/geojson | ||