Hello Dan,
I tried to use the syntax and I am getting the error: 
"The filename, directory name, or volume label syntax is incorrect."

my syntax is as below:
inFile = "D:\Dir1\Polygons.shp"
outFile = "D:\Dir2\Dissolved_polygons.shp"

dissolve = 'C:\OSGeo4W64\apps\saga\saga_cmd shapes_polygons "Polygon
Dissolve" -POLYGONS = ' + inFile + ' -DISSOLVED = ' + outFile + ' -FIELD_1=
Value -DISSOLVE= 0' 
                
subprocess.call(dissolve, shell=True)

Would you please suggest what did I do wrong?

Thanks




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/gdal-dev-Dissolve-shapefile-using-GDAL-OGR-tp5036930p5150675.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to