<div>Hello !</div>
<div> </div>
<div>I apoligize for the format of my last message, I didn't realize that putting my text in bold format will show those asterisks.</div>
<div>By the way you're Alan, for the pythom module I first had to read my arguments and passed them to the os.system(), it worked. Now when I execute this command, in my normal DOS Windows, I must change to another path before I run the .exe, I don't know how to tell this to my python module. This is my code:</div>
<div> </div>
<div>from dbf import *<br>from osgeo import ogr<br>import os<br>import sys</div>
<div>def call():<br> os.chdir('C:\Python26')<br> arg1 = "R1G-GEODESIA2.shp"<br> arg2 = "LAYER = 'R1G-GEODESIA'"<br> arg4 = "tapalpa_05_plani_point.shp"<br>
os.system('"C:/Archivos de programa/FWTools2.4.7/setfw"')<br> os.system('"C:/Archivos de programa/FWTools2.4.7/bin/ogr2ogr.exe"'+" " +"arg1" +" "+ "-where" +" "+ "arg3" +" " +"arg4")</div>
<div>call()</div>
<div> </div>
<div>If I run it, it shows me the following error:</div>
<div>Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on<br>win32<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> import fw<br>
Ingresa el nombre para el nuevo mapa<br>R1G-GEODESIA2.shp<br>Ingresa la condicion<br>LAYER = 'R1G-GEODESIA'<br>Ingresa el nombre del mapa original<br>tapalpa_05_plani_point.shp<br>FAILURE:<br>Unable to open datasource `arg3' with the following drivers.<br>
-> ESRI Shapefile<br> -> MapInfo File<br> -> UK .NTF<br> -> SDTS<br> -> TIGER<br> -> S57<br> -> DGN<br> -> VRT<br> -> REC<br> -> Memory<br> -> BNA<br> -> CSV<br> -> NAS<br>
-> GML<br> -> GPX<br> -> KML<br> -> GeoJSON<br> -> Interlis 1<br> -> Interlis 2<br> -> GMT<br> -> SQLite<br> -> ODBC<br> -> PGeo<br> -> OGDI<br> -> PostgreSQL<br> -> MySQL<br>
-> XPlane<br> -> AVCBin<br> -> AVCE00<br> -> DXF<br> -> Geoconcept<br> -> GeoRSS<br> -> GPSTrackMaker<br> -> VFK<br>>>></div>
<div> </div>
<div> </div>