Skip to content

Instantly share code, notes, and snippets.

@CEZERT
Created November 4, 2023 22:39
Show Gist options
  • Save CEZERT/3fcab988458dd1cd0ca00730f59328f5 to your computer and use it in GitHub Desktop.
Save CEZERT/3fcab988458dd1cd0ca00730f59328f5 to your computer and use it in GitHub Desktop.
for %X in (*.shp) do ogr2ogr -skipfailures -clipsrc
c:\data\PhiladelphiaBaseLayers\clipFeature\city_limits.shp
c:\data\PhiladelphiaBaseLayers\clipped\%X
c:\data\PhiladelphiaBaseLayers\%X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment