Hi Madhura,
I found link [0] and in the "fill-rule" section, there are examples that show "star & circles with voids" [1] [2]. Not sure if this works for polygon, but maybe this can help.
[0] http://www.w3.org/TR/SVG/painting.html#FillProperties [1] http://www.w3.org/TR/SVG/images/painting/fillrule-nonzero.svg [2] http://www.w3.org/TR/SVG/images/painting/fillrule-evenodd.svg
-- Aris Feryanto
On 11 Mei 2011, at 09:24, Madhura Jayaratne madhura.cj@gmail.com wrote:
In a polygon object like
POLYGON((35 10,10 20,15 40,45 45,35 10),(20 30,35 35,30 20,20 30)) (35 10,10 20,15 40,45 45,35 10) refers to the outer ring while (20 30,35 35,30 20,20 30) refers to the inner ring. A polygon has exactly one outer ring and zero or more inner rings.
When visualizing the polygon, area under the outer ring, but not under any inner rings should be colored.
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)
-- Thanks and Regards,
Madhura Jayaratne
On Wed, May 11, 2011 at 9:45 AM, Aris Feryanto aris_feryanto@yahoo.comwrote:
Hi Madhura,
I found link [0] and in the "fill-rule" section, there are examples that show "star & circles with voids" [1] [2]. Not sure if this works for polygon, but maybe this can help.
[0] http://www.w3.org/TR/SVG/painting.html#FillProperties [1] http://www.w3.org/TR/SVG/images/painting/fillrule-nonzero.svg [2] http://www.w3.org/TR/SVG/images/painting/fillrule-evenodd.svg
-- Aris Feryanto
Hi Aris,
Great. I think this should work. I'll look into that. Thanks a lot.