運行程序時出現以下錯誤:AttributeError:'模塊'對象沒有屬性'stroke_linecap'sym = mapnik.LineSymbolizer()sym.stroke = mapnik.Stroke(mapnik.Color(171,158,137), 0.5)sym.stroke_width = 2sym.stroke_linecap = mapnik.stroke_linecap.ROUND #Error is here
1 回答
守候你守候我
TA貢獻1802條經驗 獲得超10個贊
我發現了類似的問題,并最終弄清楚了。stroke_linecap使用不正確。它應該是line_cap。
sym.line_cap = mapnik.line_cap.ROUND
添加回答
舉報
0/150
提交
取消
