Skip to content

Instantly share code, notes, and snippets.

@nickpeihl
Created January 8, 2018 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickpeihl/8f957f5ce1687af27e6d556299fdfea6 to your computer and use it in GitHub Desktop.
Save nickpeihl/8f957f5ce1687af27e6d556299fdfea6 to your computer and use it in GitHub Desktop.
Powershell script to convert all KMZ files in the current folder to Shapefiles
foreach ($f in Get-ChildItem "${PWD}" -Filter *.kmz) {
docker run -it -v ${PWD}:/data geodata/gdal ogr2ogr -f "ESRI Shapefile" $f.Name.Replace('kmz', 'shp') $f.Name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment