I would like to dissolve a feature class by a field. When I run the code, I receive an error that says, "invalid topology [out of memory]" I have 16GB of RAM and terabytes available on the hard drive.
Here is my code:
#Import system modules import arcpy from arcpy import env # Set environment settings env.workspace = "Q:/LandTrendr_04/lt_ancillary/landtrendr_file_geodatabase/templates_testing/LandTrendr_GRPO_python.gdb/" # Set local variables inFeatures = "raster2polyg" outFeatureClass = "polydissolve" dissolveFields = ["UNIQUE"] # Execute Dissolve using UNIQUE as Dissolve Fields arcpy.Dissolve_management(inFeatures, outFeatureClass,dissolveFields,"","MULTI_PART", "DISSOLVE_LINES")
I would like to dissolve on the 'UNIQUE' field, no stats, create multipart polys, and dissolve lines.
I've tried to run this same tool through the toolbox and it works just fine. I would like to have this in a python script to help with my workflow.
Here is the output from the cmd prompt when I run the script.