Parser: Python Expression: getNumberOfVertices( !Shape!) Code Block: def getNumberOfVertices(feature): partnum = 0 vertices = [] while partnum < feature.partCount: part = feature.getPart(partnum) pnt = part.next() pntcount = 0 while pnt: vertices.append(pntcount) pnt = part.next() pntcount+=1 partnum+=1 return len(vertices)
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.