2) You can pass a list objects (maybe tuples?) directly into the v93 gp tools
inputList = [r"D:\csny490\test.gdb\townships", r"D:\csny490\test.gdb\regions"] outputFC = r"D:\csny490\test.gdb\output" gp.intersect_analysis(inputList, outputFC)
inputList = [r"D:\csny490\test.gdb\townships", r"D:\csny490\test.gdb\regions"] outputFC = r"D:\csny490\test.gdb\output" gp.intersect_analysis(";".join(inputList), outputFC)
gp.Intersect_analysis([o1,o2],output)
#snipit of ESRI example code inGeom1 = gp.createobject("geometry", "polygon", ary) inGeom2 = gp.createobject("geometry", "polygon", ary2) inGeoms = [inGeom1, inGeom2] outGeom = gp.createobject("geometry") newOutGeom = gp.union_analysis(inGeoms, outGeom)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.