ArcGIS supports building polygons within the flex component that contain self-intersecting rings, as well as rings that touch at multiple points (breaking the "arbitrary" rules here: http://workshops.opengeo.org/postgis-intro/validity.html ).
This causes incompatibility when passing these shapes to PostGIS. The article above mentions buffering to fix some of these issues, but this seems to only fix some cases, and often ends up with a different shape polygon than was intended (eg, only half of the poly).
Is there a way to convert these to monotonic polygons within flex so that this problem is eliminated? Or a Java API to do the same?
Or is there some other approach entirely to solving this problem?