Currently, the drawing interface only allows a single polygon to be drawn, but in fact in order to create cutouts, it's essential to be able to draw child polygons. This may be as simple as not clearing the existing shape when starting to draw another, but probably not. The question also arises: do we try to enforce the containment of cutout polygons within the outer polygon, or should that be left to the user to worry about?
Fixed in commit d759bd0. Drawing interface and existing code appears to handle the precedence of linear rings correctly, even if you draw them out of order.
Currently, the drawing interface only allows a single polygon to be drawn, but in fact in order to create cutouts, it's essential to be able to draw child polygons. This may be as simple as not clearing the existing shape when starting to draw another, but probably not. The question also arises: do we try to enforce the containment of cutout polygons within the outer polygon, or should that be left to the user to worry about?