Hi All,<br>have been searching around for the answer to this question, and found an old thread on this list.<br><br>I have a folder which contains about 30 shapefiles, old (but still useful) vmap0 data, but it is 500mb in size. I'd like to clip each shapefile to just the region I need.<br>
I understand about ogr2ogr, and I could do it one by one, <br><br>but I would like to figure out how to write a batch file to do it all at once. However- I have been trying this and that for a while, not making any progress.<br>
<br>any help is appreciated!<br><br><br>Koos<br><br><br><br>
Date: Thu, 15 Mar 2012 19:59:44 +0200<br>
From: Zirneklitis <<a href="mailto:eko@lanet.lv">eko@lanet.lv</a>><br>
Subject: <span class="il">Re</span>: [Qgis-user] <span class="il">Clipping</span> <span class="il">60</span> <span class="il">shape</span> <span class="il">layers</span><br>
To: <a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>

<br>
Use ogr2ogr:<br>
<br>
ogr2ogr -f "ESRI Shapefile" -clipsrc mask.shp output.shp input.shp<br>
<br>
Karlis<br>
<br>
Bis Nulama wrote:<br>
> ..<br>
> I have <span class="il">60</span> <span class="il">shape</span> <span class="il">layers</span> and I would like to cut them on a poligon <span class="il">shape</span><br>
> (region boundary).<br>
> Is there a way to do this selecting all the <span class="il">60</span> <span class="il">layers</span> at once (and not<br>
> repeating the clip command <span class="il">60</span> times)?<br>
> ..