Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Dissolve not dissolving. Syntax help please

$
0
0
I do not understand why this simple script won't work. I can get it to dissolve in model builder but not from a script that I run from inside the map document. My output results are 4 polygons, just like my input file. I only want one.

Any suggestions? Attached shapefile.

Code:

# Import arcpy module
import arcpy
from arcpy import env

# Local variables:
env.workspace="C:\\Test\\shapefiles"

infeatures = "Multipolys.shp"
outfeatures = "C:\\Test\\shapefiles\\Dissolve.shp"

# Process: Dissolve
arcpy.Dissolve_management(infeatures, outfeatures, "", "", "SINGLE_PART", "DISSOLVE_LINES")

ArcGIS 10.1 Advanced
Attached Files

Viewing all articles
Browse latest Browse all 2485

Trending Articles