[Phpmyadmin-devel] Prototype implementation - Visualizing GIS data

Aris Feryanto aris_feryanto at yahoo.com
Wed May 11 06:15:49 CEST 2011


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 at 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20110510/28007234/attachment.html>


More information about the Developers mailing list