[gdal-dev] [BULK] Re: Dissolve shapefile using GDAL/OGR

devendra dahal kalu671 at gmail.com
Mon Jul 14 15:52:52 PDT 2014


Hello all,
Does anybody have suggestions on this issue?
I am just interested on dissolving polygons, if there is another way
around, too.

thanks
On Jul 11, 2014 9:21 AM, "kalu671" <kalu671 at gmail.com> wrote:

> 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140714/fae72559/attachment.html>


More information about the gdal-dev mailing list