Created
January 8, 2018 19:56
-
-
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
This file contains 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
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