I have an ArcPy script in which I am using arcpy.Dissolve on a single feature class with multiple features to get a single multi-part feature in the output. The script is successful only part of the time and the problem, I would guess, relates to the function built-in tiling.
Per Esri:
The availability of physical memory may limit the amount (and complexity) of input features that can be processed and dissolved into a single output feature. This limitation could cause an error to occur, as the dissolve process may require more memory than is available. To prevent this, Dissolve may divide and process the input features using an adaptive tiling algorithm...
I tried putting the operation in a while loop that exits when the feature count is 1 but as the Esri page states, that rarely results in success.
How do I complete the dissolve in the midst of this problem?
My system has plenty of memory so the problem cannot be corrected by running on a box with more memory.
Answer
You will want to execute Dissolve in 64-bit, rather than the default 32-bit. Make sure your system has 64-bit geoprocessing installed. A quick way to check is to see if there is a 64-bit Python installation:
C:\Python27\ArcGISx6410.2
64-bit background geoprocessing is available with 10.1 SP1 here and is available with the initial install of 10.2.
No comments:
Post a Comment