Skip to content

Instantly share code, notes, and snippets.

@pigreco
Created February 8, 2018 13:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pigreco/22aed54bb70baf9767e22fe05a7f15a0 to your computer and use it in GitHub Desktop.
esporta tutti le tabelle di un db sqlite in shapefile nella cartella output
#!/bin/bash
# attivo il debug così vedo cosa avviene nella shell
set -x
# per ogni file sqlite contenuto contenuto nella cartella dello script, esegue
# l'export in shp nella cartella output
for i in *.sqlite;
do ogr2ogr -f "ESRI Shapefile" output ./"$i";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment