I am unable to call shp2pgsql using python as I have to pass various options like (-s -a -i)
and I am not getting the required output ..
Method I am using is
p1 = subprocess.Popen(["cmd", "/C", "shp2pgsql","-a","-s 4326","roads.shp" "roads", ">","roads.sql"],stdout=subprocess.PIPE)
>>>p1.communicate()[0]
as my intension is to add the features of the shapefile into the already existing table in the database
I am done with the environment settings.. roads.shp is the name of the shapefile roads is the table name and roads.sql is the sql file name..
