Skip to content

Instantly share code, notes, and snippets.

@david-murr
Created January 24, 2016 01:11
Show Gist options
  • Select an option

  • Save david-murr/75b64f6935ab7443b786 to your computer and use it in GitHub Desktop.

Select an option

Save david-murr/75b64f6935ab7443b786 to your computer and use it in GitHub Desktop.
parsing shapefiles to json -- getting slurp and the array brackets right
fio cat missed.shp | jq --slurp "[.[] | {APN: .properties.APN, pool_size: .properties.POOL_SZ}]" | in2csv -f json > test.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment