Re: [svg-developers] Odd polygon behavior

2005-03-31 Thread Rerun

Elaboration.  The hole in the first one is the result of an 
intersection, and not the second.  I cut and pasted a hole I knew to 
work into the same svg file, replacing the one that does not to create 
the 2nd svg file.  This way I was comparing apples to apples.

Rerun wrote:

Below are two SVG files, I'd attach them, but they usually get 
rejected.  They are similar in that they are created by postGIS from the 
same data.  The first is an intersection, and the other is not.  The 
hole in the first one is filled, and not in the 2nd one.  I realize the 
coordinates are not exactly the same in the circle, a bug in postGIS I 
guess, but it seems that the hole in the first one should still exist.  
Thanks.


SVG1

?xml version=1.0 encoding=iso-8859-1?
!DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.0//EN 
http://www.w3.org/TR/SVG/DTD/svg10.dtd;
svg id=map2 width=850px height=675px viewBox=-5800 -5000 11500 
1
g fill=blue stroke=rgb(128,128,128) stroke-width=1px 
opacity=1
path d=M 2972 -3465 3090 -2614 3980 -1689 3980 2547 
-3590 2547 -3590 -3465 2972 -3465 M 2083 -447 2082 -396 2081 -346 2079 
-295 2076 -245 2073 -194 2068 -144 2063 -94 2057 -44 2050 6 2042 56 2034 
106 2025 155 2015 204 2004 254 1992 302 1980 351 1967 400 1953 448 1938 
496 1923 543 1907 591 1890 638 1872 684 1854 731 1835 777 1815 822 1794 
867 1773 912 1751 957 1728 1001 1704 1044 1680 1087 1655 1130 1630 1172 
1604 1214 1577 1255 1549 1295 1521 1335 1493 1375 1463 1414 1433 1452 
1403 1490 1371 1527 1340 1564 1307 1600 1274 1636 1241 1670 1207 1704 
1172 1738 1137 1771 1101 1803 1065 1834 1028 1865 991 1895 954 1924 916 
1953 877 1981 838 2008 799 2034 759 2060 719 2085 678 2109 637 2132 596 
2155 554 2177 512 2198 470 2218 427 2237 384 2256 341 2273 297 2290 253 
2306 209 2321 165 2336 120 2349 76 2362 31 2374 -14 2385 -60 2395 -105 
2404 -151 2412 -196 2420 -242 2426 -288 2432 -334 2437 -380 2441 -426 
2444 -472 2446 -519 2448 -565 2448 -611 2448 -657 2446 -703 2444 -750 
2441 -796 2437 -842 2432 -887 2426 -933 2420 -979 2412 -1025 2404 -1070 
2395 -1115 2385 -1160 2374 -1205 2362 -1250 2349 -1295 2336 -1339 2321 
-1383 2306 -1427 2290 -1470 2273 -1514 2256 -1557 2237 -1599 2218 -1642 
2198 -1684 2177 -1725 2155 -1767 2132 -1808 2109 -1848 2085 -1889 2060 
-1928 2034 -1968 2008 -2007 1981 -2045 1953 -2083 1924 -2121 1895 -2158 
1865 -2195 1834 -2231 1803 -2267 1771 -2302 1738 -2336 1704 -2370 1670 
-2404 1636 -2437 1600 -2469 1564 -2501 1527 -2532 1490 -2563 1452 -2593 
1414 -2622 1375 -2651 1335 -2679 1295 -2707 1255 -2733 1214 -2760 1172 
-2785 1130 -2810 1087 -2834 1044 -2858 1001 -2880 957 -2902 912 -2924 
867 -2944 822 -2964 777 -2983 731 -3002 684 -3019 638 -3036 591 -3053 
543 -3068 496 -3083 448 -3097 400 -3110 351 -3122 302 -3134 254 -3144 
204 -3154 155 -3164 106 -3172 56 -3180 6 -3186 -44 -3193 -94 -3198 -144 
-3202 -194 -3206 -245 -3209 -295 -3211 -346 -3212 -396 -3212 -447 -3212 
-497 -3211 -548 -3209 -598 -3206 -649 -3202 -699 -3198 -749 -3193 -800 
-3186 -850 -3180 -900 -3172 -949 -3164 -999 -3154 -1049 -3144 -1098 
-3134 -1147 -3122 -1196 -3110 -1245 -3097 -1293 -3083 -1341 -3068 -1389 
-3053 -1437 -3036 -1484 -3019 -1531 -3002 -1578 -2983 -1624 -2964 -1670 
-2944 -1716 -2924 -1761 -2902 -1806 -2880 -1850 -2858 -1894 -2834 -1938 
-2810 -1981 -2785 -2023 -2760 -2065 -2733 -2107 -2707 -2148 -2679 -2189 
-2651 -2229 -2622 -2268 -2593 -2307 -2563 -2346 -2532 -2384 -2501 -2421 
-2469 -2458 -2437 -2494 -2404 -2529 -2370 -2564 -2336 -2598 -2302 -2631 
-2267 -2664 -2231 -2696 -2195 -2728 -2158 -2759 -2121 -2789 -2083 -2818 
-2045 -2847 -2007 -2874 -1968 -2902 -1928 -2928 -1889 -2954 -1848 -2979 
-1808 -3003 -1767 -3026 -1725 -3049 -1684 -3070 -1642 -3091 -1599 -3111 
-1557 -3131 -1514 -3149 -1470 -3167 -1427 -3184 -1383 -3200 -1339 -3215 
-1295 -3229 -1250 -3243 -1205 -3255 -1160 -3267 -1115 -3278 -1070 -3288 
-1025 -3298 -979 -3306 -933 -3313 -887 -3320 -842 -3326 -796 -3330 -750 
-3334 -703 -3338 -657 -3340 -611 -3341 -565 -3341 -519 -3341 -472 -3340 
-426 -3338 -380 -3334 -334 -3330 -288 -3326 -242 -3320 -196 -3313 -151 
-3306 -105 -3298 -60 -3288 -14 -3278 31 -3267 76 -3255 120 -3243 165 
-3229 209 -3215 253 -3200 297 -3184 341 -3167 384 -3149 427 -3131 470 
-3111 512 -3091 554 -3070 596 -3049 637 -3026 678 -3003 719 -2979 759 
-2954 799 -2928 838 -2902 877 -2874 916 -2847 954 -2818 991 -2789 1028 
-2759 1065 -2728 1101 -2696 1137 -2664 1172 -2631 1207 -2598 1241 -2564 
1274 -2529 1307 -2494 1340 -2458 1371 -2421 1403 -2384 1433 -2346 1463 
-2307 1493 -2268 1521 -2229 1549 -2189 1577 -2148 1604 -2107 1630 -2065 
1655 -2023 1680 -1981 1704 -1938 1728 -1894 1751 -1850 1773 -1806 1794 
-1761 1815 -1716 1835 -1670 1854 -1624 1872 -1578 1890 -1531 1907 -1484 
1923 -1437 1938 -1389 1953 -1341 1967 -1293 1980 -1245 1992 -1196 2004 
-1147 2015 -1098 2025 -1049 2034 -999 2042 -949 2050 -900 2057 -850 2063 
-800 2068 -749 2073 -699 2076 -649 2079 -598 2081 -548 2082 -497 2083 
-447 z/
/g
/svg


SVG2

?xml 

RE: [svg-developers] Odd polygon behavior

2005-03-31 Thread Doug Schepers

Hi, Rerun-

If you're trying to make the whole appear, simply use the attribute/value:
fill-rule='nonzero' (default is 'evenodd').

I haven't looked at it closely, but I suspect that the inner path is going
the wrong way (that is, deasil or widdershins) with respect to the outer
path.

Regards-
Doug

doug . schepers  @ vectoreal.com
www.vectoreal.com ...for scalable solutions.
 

Rerun wrote:
| 
| Below are two SVG files, I'd attach them, but they usually 
| get rejected.  They are similar in that they are created by 
| postGIS from the same data.  The first is an intersection, 
| and the other is not.  The hole in the first one is filled, 
| and not in the 2nd one.  I realize the coordinates are not 
| exactly the same in the circle, a bug in postGIS I guess, but 
| it seems that the hole in the first one should still exist.  
| Thanks.
| 
| 



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/