<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 &quot;LAYER = &#39;R1G-GEODESIA&#39;&quot; tapalpa_05_plani_point.dbf, I want my uotput to look like this. </div>
<div>Instead I&#39;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(&quot;unico.txt&quot;, &quot;r&quot;).readlines():</div>
<div>     p = subprocess.Popen([&#39;C:/Archivos de programa/FWTools2.4.7/bin/ogr2ogr&#39;, line+&#39;.shp&#39;, &#39;-where&#39;, &quot;LAYER=&#39;line&#39;&quot;, b+&#39;.shp&#39;])</div>
<div> </div>
<div>Any suggestions? </div>