Skip to content

Instantly share code, notes, and snippets.

@netbrain
Created November 10, 2017 11:06
Show Gist options
  • Select an option

  • Save netbrain/cc5ff5164b185554843bee5cce9c353a to your computer and use it in GitHub Desktop.

Select an option

Save netbrain/cc5ff5164b185554843bee5cce9c353a to your computer and use it in GitHub Desktop.
Convert enc files to geojson files
#!/bin/bash
ls *.000 | xargs -I @ bash -c "ogrinfo @ | awk '{if(NR>3)print \$2}' | xargs -I xxx ogr2ogr -f \"GeoJSON\" @_xxx.geojson @ xxx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment