Hi,but for the street widths it works ?lemme know..m.
ce.setAttributeSource(streetsegment, "/ce/street/streetWidth", "OBJECT") ce.setAttributeSource(streetsegment, "/ce/street/sidewalkWidthLeft ", "OBJECT") ce.setAttributeSource(streetsegment, "/ce/street/sidewalkWidthRight", "OBJECT")
selectedSegments = ce.getObjectsFrom(ce.selection()) for streetsegment in selectedSegments: ce.setAttributeSource(streetsegment, "/ce/street/streetWidth", "OBJECT") ce.setAttribute(streetsegment , 'streetWidth', W1) ce.setAttributeSource(streetsegment, "/ce/street/sidewalkWidthLeft", "OBJECT") ce.setAttribute(streetsegment , 'sidewalkWidthLeft', W2) ce.setAttributeSource(streetsegment, "/ce/street/sidewalkWidthRight", "OBJECT") ce.setAttribute(streetsegment , '/sidewalkWidthRight', W3)
width = getObjectAttr("StreetType", false) streetWidthDefault = 7 attr streetWidth = case width == "Alley" : 4 * streetscale case width == "Arterial" : 12 * streetscale case width == "Collector" : 8 * streetscale else : streetWidthDefault
sidewalkr = getObjectAttr("SidewalkR",false) attr sidewalkWidthRight = case sidewalkr == "Alley" : 2 * streetscale case sidewalkr == "Arterial" : 6 * streetscale case sidewalkr == "Collector" : 4 * streetscale else : streetWidthDefault
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.