<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
El 05/02/12 14:21, sergio sevillano escribió:
<blockquote cite="mid:7960F2DF-C12A-4921-834B-8205E31ACE7F@gmail.com"
type="cite">
<div>
<div style="word-wrap: break-word;">
<div>
<div>
<div><br>
</div>
<div><br>
</div>
<div>por último, hay un alma caritativa</div>
<div>que me diga como hacer un ejecutable de UNIX</div>
<div>para pasar el ogr2ogr a todas las capas y no solo 1 a 1</div>
<div><br>
</div>
<div>es decir que haga:</div>
<div>ogr2ogr -s_srs "+init=epsg:23030 +nadgrids=PENR2009.gsb +wktext"
-t_srs EPSG:4326 result/RUCONSTRU.SHP
files/villanueva/28_176_RA_2012-01-24_SHF/CONSTRU/CONSTRU.SHP</div>
<div>y luego</div>
<div>ogr2ogr -s_srs "+init=epsg:23030 +nadgrids=./PENR2009.gsb
+wktext" -t_srs EPSG:4326 result/RUELEMLIN.SHP
files/villanueva/28_176_RA_2012-01-24_SHF/ELEMLIN/ELEMLIN.SHP</div>
<div>....</div>
<div>etc.</div>
<div>?</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
No lo sé con seguridad, pero deduciendo de la orden que ha mandado
Alejandro creo que esto debería funcionar:<br>
for i in result/*.shp; do dest=$(basename $i .shp); ogr2ogr -s_srs
"+init=epsg:23030 +nadgrids=./PENR2009.gsb +wktext" -t_srs EPSG:4326
$dest.SHP files/villanueva/28_176_RA_2012-01-24_SHF/$dest/$dest.SHP;
done<br>
</body>
</html>