DOI-USGS / gems-tools-arcmap

Tools for working with the GeMS geologic map database schema in ArcGIS
Creative Commons Zero v1.0 Universal
42 stars 21 forks source link

Making Polygons Tool Error - IndexError : list index out of range #64

Open lawilliams-virginia opened 3 years ago

lawilliams-virginia commented 3 years ago

Hi Folks-

I am running into the error of "IndexError : list index out of range" when running the Making Polygons tool in ArcMap. It appears to be triggered by line 302 - lastPt = cpList[0]

I've attached an image of the dialog box. Let me know what I can do to fix it.

Thanks, Lauren

Make Polys Index Error

ethoms-usgs commented 3 years ago

Hi Lauren, Apologies for not getting back to you sooner. I don't have a suggestion yet, but I will l run some tests today.

ethoms-usgs commented 3 years ago

Hi Lauren, Turns out I could not get the Make Polys tool to run without errors or hang as it was trying to write one of the error feature classes to the geodatabase. So, I added a simpler and less robust tool to the toolbox. It is in the latest release (v1.6) and is called Rebuild MapUnit Polygons. You cannot use the new tool to make MapUnit polygons from scratch; use the ArcGIS Feature to Polygon tool for that, but you can use alongside editing sessions if you are editing linework to change the shape of polygons or make new ones and you want to re-build the polygons every few edits.

The new tool mostly uses code for a tool I wrote years ago after some frustration trying to use the Topology Edit tool so if you are comfortable using that, then this new tool is basically moot.

Let me know if you prefer the functionality of the Make Polygons tool and I can try another crack at it.