<div>Hello members:</div>
<div> </div>
<div>How can I write a statement to execute the following:</div>
<div>C:/Archivos de programa/FWTools2.4.7/bin/ogr2ogr R1G-GEODESIA.shp -where "LAYER = 'R1G-GEODESIA'" tapalpa_05_plani_point.dbf, I want my uotput to look like this. </div>
<div>Instead I'm getting this C:/Archivos de programa/FWTools2.4.7/bin/ogr2ogr T21-PUENTES.shp -where LAYER=+line tapalpa_05_plani_line.shp</div>
<div>In miy code line is a string given by the user:</div>
<div> </div>
<div>for line in open("unico.txt", "r").readlines():</div>
<div> p = subprocess.Popen(['C:/Archivos de programa/FWTools2.4.7/bin/ogr2ogr', line+'.shp', '-where', "LAYER='line'", b+'.shp'])</div>
<div> </div>
<div>Any suggestions? </div>