#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)
gp.Intersect_analysis([o1,o2],output)
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)
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und vieles mehr. Neu hier? Erstelle ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.