Awesome, thank you. Took a really long time but I was able to get it to
work with the following change:
diff --git a/pycoast/cw_agg.py b/pycoast/cw_agg.py
index 040713e..36fee1a 100644
--- a/pycoast/cw_agg.py
+++ b/pycoast/cw_agg.py
@@ -124,25 +124,25 @@ class ContourWriterAGG(ContourWriterBase):
# draw '|'
(x_bm, y_bm) = (x, y - half_ptsize) # bottom middle point
(x_tm, y_tm) = (x, y + half_ptsize) # top middle point
- self._draw_line(draw, [(x_bm, y_bm), (x_tm, y_tm)],
+ self._draw_line(draw, [x_bm, y_bm, x_tm, y_tm],
outline=outline, width=width,
outline_opacity=outline_opacity)
# draw '-'
(x_lm, y_lm) = (x - half_ptsize, y) # left middle point
(x_rm, y_rm) = (x + half_ptsize, y) # right middle point
- self._draw_line(draw, [(x_lm, y_lm), (x_rm, y_rm)],
+ self._draw_line(draw, [x_lm, y_lm, x_rm, y_rm],
outline=outline, width=width,
outline_opacity=outline_opacity)
# draw '/'
(x_bl, y_bl) = (x - half_ptsize, y - half_ptsize) # bottom
left point
(x_tr, y_tr) = (x + half_ptsize, y + half_ptsize) # top right
point
- self._draw_line(draw, [(x_bl, y_bl), (x_tr, y_tr)],
+ self._draw_line(draw, [x_bl, y_bl, x_tr, y_tr],
outline=outline, width=width,
outline_opacity=outline_opacity)
# draw '\'
(x_tl, y_tl) = (x - half_ptsize, y + half_ptsize) # top left
point
(x_br, y_br) = (x + half_ptsize, y - half_ptsize) # bottom
right point
- self._draw_line(draw, [(x_tl, y_tl), (x_br, y_br)],
+ self._draw_line(draw, [x_tl, y_tl, x_br, y_br],
outline=outline, width=width,
outline_opacity=outline_opacity)
Something in aggdraw must assume some kind of structure and it just
silently fails. I think this is probably going to a patch in pycoast as
well as documentation (at the minimum) for aggdraw.
Dave
> <
https://groups.google.com/d/msgid/pytroll/c18d136b-6ac2-4108-8de8-17066187b31fn%40googlegroups.com?utm_medium=email&utm_source=footer
> <
https://groups.google.com/d/msgid/pytroll/c18d136b-6ac2-4108-8de8-17066187b31fn%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "pytroll" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
pytroll+u...@googlegroups.com
> <mailto:
pytroll+u...@googlegroups.com>.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/pytroll/2357dd43-1b48-4ebc-8a69-82d4518756can%40googlegroups.com
> <
https://groups.google.com/d/msgid/pytroll/2357dd43-1b48-4ebc-8a69-82d4518756can%40googlegroups.com?utm_medium=email&utm_source=footer>.