<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div id="yiv303295632"><div>Hi Madhura,</div><div><br></div><div>I found link [0] and in the "fill-rule" section, there are examples that show "star & circles with voids" [1] [2].</div><div>Not sure if this works for polygon, but maybe this can help.</div><div><br></div><div>[0] <a href="http://www.w3.org/TR/SVG/painting.html#FillProperties">http://www.w3.org/TR/SVG/painting.html#FillProperties</a></div><div>[1] <a href="http://www.w3.org/TR/SVG/images/painting/fillrule-nonzero.svg">http://www.w3.org/TR/SVG/images/painting/fillrule-nonzero.svg</a></div><div>[2] <a href="http://www.w3.org/TR/SVG/images/painting/fillrule-evenodd.svg">http://www.w3.org/TR/SVG/images/painting/fillrule-evenodd.svg</a></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html;
charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div><br></div><div>--</div><div>Aris Feryanto</div><div><br>On 11 Mei 2011, at 09:24, Madhura Jayaratne <<a rel="nofollow" ymailto="mailto:madhura.cj@gmail.com" target="_blank" href="mailto:madhura.cj@gmail.com">madhura.cj@gmail.com</a>> wrote:<br></div><blockquote type="cite"><div>In a polygon object like <div><span class="yiv303295632Apple-style-span" style="font-size: 13px; font-family: sans-serif; ">POLYGON((35 10,10 20,15 40,45 45,35 10),(20 30,35 35,30 20,20 30))</span></div>
<div><font class="yiv303295632Apple-style-span" face="sans-serif"><span class="yiv303295632Apple-style-span" style=""><span class="yiv303295632Apple-style-span" style="font-size:13px;">(35 10,10 20,15 40,45 45,35 10) refers to the outer ring while </span><span class="yiv303295632Apple-style-span" style="font-size:13px;">(20 30,35 35,30 20,20 30) refers to the inner ring. </span></span></font></div>
<div><font class="yiv303295632Apple-style-span" face="sans-serif"><span class="yiv303295632Apple-style-span" style=""><span class="yiv303295632Apple-style-span" style="font-size:13px;">A polygon has exactly one outer ring and zero or more inner rings.</span></span></font></div>
<div><font class="yiv303295632Apple-style-span" face="sans-serif"><span class="yiv303295632Apple-style-span" style=""><br></span></font></div><div><font class="yiv303295632Apple-style-span" face="sans-serif"><span class="yiv303295632Apple-style-span" style="">When visualizing the polygon, area under the outer ring, but not under any inner rings should be colored.</span></font></div>
<div><font class="yiv303295632Apple-style-span" face="sans-serif"><span class="yiv303295632Apple-style-span" style=""><br></span></font></div><div><font class="yiv303295632Apple-style-span" face="sans-serif"><span class="yiv303295632Apple-style-span" style="">So the hack I have used is, I have drawn the outer ring and on top of that drawn the inner rings with the background color. You can find a polygon which has inner rings in the dataset I have uploaded to the demo. (database: opengis, table:gis_all)</span></font></div>
<div><font class="yiv303295632Apple-style-span" face="sans-serif"><span class="yiv303295632Apple-style-span" style=""><br></span></font>-- <br>Thanks and Regards,<div><br>
</div><div>Madhura Jayaratne<br><div><br></div></div></div></div></blockquote></div></div></body></html>