Lars,<br><br>Can you give us an example, or extract of, a location where the rendering problems are?  Having trouble with some of the terminology too - multipolygons are multipart polygons, each polygon of which is a single part but can be a donut with multiple holes?<br>
<br>Steve<br><br><br><br><br><div class="gmail_quote">2009/10/22 Lars Westerlind <span dir="ltr">&lt;<a href="mailto:lars.westerlind@enera.se">lars.westerlind@enera.se</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello Steve,<br>
Thanks for your attention.<br>
I fully agree that there is nothing yet indicating a bug in mapserver. The shapefiles I&#39;ve inspected just lack the inner polygons, which certainly are available when editing open street data at their site; Mapserver can&#39;t guess, can it?<br>

<br>
But if I got it right you answered a question I&#39;ve got but not expressed. You say Mapserver would handle a multipolygon shapefile correctly, that is, there would be no need to make special entries in the mapfile for the islands; they would just be drawn as holes in the lakes automatically? I was thinking I had to draw lakes first, and then islands in lakes.<br>

<br>
If so I&#39;m even more curious why nobody have put the pieces together. Maybe it&#39;s about competition? I guess I&#39;ll have to leave the issue until when/if I&#39;ll get time to do learn how to do my own data extracts, or other sources will be available.<br>

<br>
/Lars<br>
<br>
<br>
-----Ursprungligt meddelande-----<br>
Från: Steve Lime [mailto:<a href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</a>]<br>
Skickat: 21 October 2009 17:11<br>
Till: Lars Westerlind; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
Ämne: Re: SV: [mapserver-users] Shapefiles with islands<br>
<div><div></div><div class="h5"><br>
I&#39;m not using the OpenStreetMap data but am rendering and querying lots<br>
of complex lake<br>
polygons with multiple outer rings (basins) and inner rings (islands).<br>
You need not do anything<br>
special. Sounds like a data production problem more so than a MapServer<br>
bug. Here&#39;s a sample:<br>
<br>
<br>
<a href="http://maps.dnr.state.mn.us/cgi-bin/mapserv56?mode=map&amp;map=/usr/local/mapserver/apps/mr/landview/landview.map&amp;mapext=523963.26347152865+5289818.927668251+570217.999745758+5313957.83079347&amp;mapsize=1006+525&amp;layers=lakes+roads+bdry_munipy3&amp;layer=bdry_statepy2&amp;map.imagetype=aggpng24" target="_blank">http://maps.dnr.state.mn.us/cgi-bin/mapserv56?mode=map&amp;map=/usr/local/mapserver/apps/mr/landview/landview.map&amp;mapext=523963.26347152865+5289818.927668251+570217.999745758+5313957.83079347&amp;mapsize=1006+525&amp;layers=lakes+roads+bdry_munipy3&amp;layer=bdry_statepy2&amp;map.imagetype=aggpng24</a><br>

<br>
All the lakes are multi-polygons...<br>
<br>
For example, if islands are represented as individual features and not<br>
inner rings of lake<br>
polygons then you might be running into draw order issues. MapServer<br>
renders the features<br>
in the order they show up in the shapefile. I suppose it&#39;s possible<br>
then that islands might<br>
be getting drawn before the lake (which has no holes). If that&#39;s the<br>
case (try drawing<br>
outlines only and no fill) then you&#39;d need to sort the data based on<br>
some sort of land<br>
 vs. water attribute so that lakes are drawn first then the islands on<br>
top.<br>
<br>
&gt;&gt;&gt; On 10/21/2009 at 12:33 AM, in message<br>
&lt;2349CC72A0B01C4FAA4FFAE6C735E1DDE293AD@enerasrv01.Enera.local&gt;, &quot;Lars<br>
Westerlind&quot; &lt;<a href="mailto:lars.westerlind@enera.se">lars.westerlind@enera.se</a>&gt; wrote:<br>
&gt; So,<br>
&gt; How is the lack of response to be interpreted? Nobody render islands<br>
in<br>
&gt; lakes? Everybody make their own data extracts? Or there are other<br>
(for me)<br>
&gt; hidden sources of information?<br>
&gt;<br>
&gt; /Lars<br>
&gt;<br>
&gt;<br>
&gt; -----Ursprungligt meddelande-----<br>
&gt; Från: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><br>
&gt; [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] För Lars Westerlind<br>
&gt; Skickat: 19 October 2009 11:43<br>
&gt; Till: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; Ämne: [mapserver-users] Shapefiles with islands<br>
&gt;<br>
&gt; Hi,<br>
&gt; I wonder if anyone renders islands in lakes? I use OpenStreetMap<br>
Data,<br>
&gt; where lakes are tagged as multipolygons, with islands as inner<br>
polygons.<br>
&gt; The source I use, mainly the &quot;Mapserver recommended&quot; cloudmade make<br>
&gt; simple extracts where those inner polygons are simply skipped,<br>
AFAIU.<br>
&gt; Looks rather funny for islands that are large enough to keep some<br>
&gt; roads...<br>
&gt;<br>
&gt; So, what is recommended? Should I make my own OpenStreetMap extracts<br>
for<br>
&gt; this purpose? Or does anyone have any other good sources?<br>
&gt;<br>
&gt; BTW,<br>
&gt; Do I understand correctly that multipolygon files must be converted<br>
in<br>
&gt; order to be possible to handle by mapserver? I mean, inner polygons<br>
&gt; should have at least an extra column in the DBfile, telling it&#39;s<br>
level,<br>
&gt; or such?<br>
&gt;<br>
&gt; Regards,<br>
&gt; Lars<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></div></blockquote></div><br>