Skip to content

Instantly share code, notes, and snippets.

@jaredrada
jaredrada / ogrcat
Created August 1, 2018 22:54 — forked from perrygeo/ogrcat
ogrcat: make line-delimited geojson features to stdout from any ogr vector datasource
#!/bin/bash
#
# ogrcat
# produces line-delimited geojson features
# Like `fio cat` but uses ogr2ogr under the hood
ECHO_FEATURES=""
ogr2ogr -f GeoJSON /vsistdout/ "$@" | while read line