func drawLine(ctxt draw2d.GraphicContext, g *geos.Geometry, c color.Color, width float64, scale func(x, y float64) (float64, float64)) { if c != nil { ctxt.SetStrokeColor(c) } if width != 0.0 { ctxt.SetLineWidth(width) } // XXX: should get a [] of points cs, err := g.coordSeq() if err != nil { log.Fatal(err) } lineCoordSeq(ctxt, cs, scale) ctxt.Stroke() }