Created
November 10, 2017 11:06
-
-
Save netbrain/cc5ff5164b185554843bee5cce9c353a to your computer and use it in GitHub Desktop.
Convert enc files to geojson files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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