<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
span.E-postmall17
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hello,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>As said, I don’t have RENDERING
problems. I have problems to find shapefiles, where the inner polygons are
present. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>At<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a
href="http://trac.osgeo.org/mapserver/wiki/RenderingOsmData">http://trac.osgeo.org/mapserver/wiki/RenderingOsmData</a>
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>there are suggestions to use<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a href="http://downloads.cloudmade.com/">http://downloads.cloudmade.com/</a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>to download data. I’ve tested <st1:country-region
w:st="on">Sweden</st1:country-region>, <st1:country-region w:st="on">Germany</st1:country-region>
and <st1:place w:st="on"><st1:country-region w:st="on">Great Britain</st1:country-region></st1:place>
if I remember correctly, and neither of them enclose inner polygons in their
shapefiles. I’ve put a question to cloudmade, but they don’t
respond. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>For instance,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In the <st1:PlaceType w:st="on">lake</st1:PlaceType>
<st1:PlaceName w:st="on">Bolmen</st1:PlaceName>, <st1:place w:st="on"><st1:country-region
w:st="on">Sweden</st1:country-region></st1:place>, there is one larger island
with roads, called Bolmsö<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a
href="http://www.openstreetmap.org/edit?lat=56.9562&lon=13.7664&zoom=13">http://www.openstreetmap.org/edit?lat=56.9562&lon=13.7664&zoom=13</a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>No problem to see it at OpenStreetMap
editor, but the island does not exist in the Sweden_natural, Sweden_water nor Sweden_coastline
shapefiles from cloudemade. If the inner polygon is tagged as “costline”,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>It seems to appear (example: Sollerön in <st1:place
w:st="on"><st1:PlaceType w:st="on">lake</st1:PlaceType> <st1:PlaceName w:st="on">Siljan</st1:PlaceName></st1:place>),
however, this is not how it should be tagged due to OpenStreetMap’s
manuals.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I’m still very puzzled that nobody <st1:place
w:st="on"><st1:City w:st="on">sais</st1:City></st1:place> “just pick the
shapefiles from…”. I can understand that many user produce their
own “cultural” data (streets, places…) but I don’t
understand why one should produce their own data for “natual” data.
I know that <st1:country-region w:st="on"><st1:place w:st="on">Sweden</st1:place></st1:country-region>,
Finland etc have more island than many other countries; still, the problem can’t
be so unique. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>/Lars<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=SV style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>Från:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Steve Grey
[mailt</span></font><font size=2 face=Tahoma><span lang=SV style='font-size:
10.0pt;font-family:Tahoma'>o:stevegrey78@gmail.com] <br>
<b><span style='font-weight:bold'>Skickat:</span></b> 22 October 2009 11:02<br>
<b><span style='font-weight:bold'>Till:</span></b> <st1:PersonName w:st="on">Lars
Westerlind</st1:PersonName><br>
<b><span style='font-weight:bold'>Kopia:</span></b>
mapserver-users@lists.osgeo.org<br>
<b><span style='font-weight:bold'>Ämne:</span></b> Re: SV: [mapserver-users]
Shapefiles with islands</span></font><span lang=SV><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>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>
<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>2009/10/22 <st1:PersonName w:st="on">Lars Westerlind</st1:PersonName>
<<a href="mailto:lars.westerlind@enera.se">lars.westerlind@enera.se</a>><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><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've inspected just lack the inner polygons, which certainly are
available when editing open street data at their site; Mapserver can't guess,
can it?<br>
<br>
But if I got it right you answered a question I'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'm even more curious why nobody have put the pieces together. Maybe it's
about competition? I guess I'll have to leave the issue until when/if I'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: <st1:PersonName w:st="on">Lars Westerlind</st1:PersonName>; <a
href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
Ämne: Re: SV: [mapserver-users] Shapefiles with islands<o:p></o:p></span></font></p>
<div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
I'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's a sample:<br>
<br>
<br>
<a
href="http://maps.dnr.state.mn.us/cgi-bin/mapserv56?mode=map&map=/usr/local/mapserver/apps/mr/landview/landview.map&mapext=523963.26347152865+5289818.927668251+570217.999745758+5313957.83079347&mapsize=1006+525&layers=lakes+roads+bdry_munipy3&layer=bdry_statepy2&map.imagetype=aggpng24"
target="_blank">http://maps.dnr.state.mn.us/cgi-bin/mapserv56?mode=map&map=/usr/local/mapserver/apps/mr/landview/landview.map&mapext=523963.26347152865+5289818.927668251+570217.999745758+5313957.83079347&mapsize=1006+525&layers=lakes+roads+bdry_munipy3&layer=bdry_statepy2&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's possible<br>
then that islands might<br>
be getting drawn before the lake (which has no holes). If that's the<br>
case (try drawing<br>
outlines only and no fill) then you'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>
>>> On 10/21/2009 at 12:33 AM, in message<br>
<2349CC72A0B01C4FAA4FFAE6C735E1DDE293AD@enerasrv01.Enera.local>,
"Lars<br>
Westerlind" <<a href="mailto:lars.westerlind@enera.se">lars.westerlind@enera.se</a>>
wrote:<br>
> So,<br>
> How is the lack of response to be interpreted? Nobody render islands<br>
in<br>
> lakes? Everybody make their own data extracts? Or there are other<br>
(for me)<br>
> hidden sources of information?<br>
><br>
> /Lars<br>
><br>
><br>
> -----Ursprungligt meddelande-----<br>
> Från: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><br>
> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>]
För <st1:PersonName w:st="on">Lars Westerlind</st1:PersonName><br>
> Skickat: 19 October 2009 11:43<br>
> Till: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> Ämne: [mapserver-users] Shapefiles with islands<br>
><br>
> Hi,<br>
> I wonder if anyone renders islands in lakes? I use OpenStreetMap<br>
Data,<br>
> where lakes are tagged as multipolygons, with islands as inner<br>
polygons.<br>
> The source I use, mainly the "Mapserver recommended" cloudmade
make<br>
> simple extracts where those inner polygons are simply skipped,<br>
AFAIU.<br>
> Looks rather funny for islands that are large enough to keep some<br>
> roads...<br>
><br>
> So, what is recommended? Should I make my own OpenStreetMap extracts<br>
for<br>
> this purpose? Or does anyone have any other good sources?<br>
><br>
> BTW,<br>
> Do I understand correctly that multipolygon files must be converted<br>
in<br>
> order to be possible to handle by mapserver? I mean, inner polygons<br>
> should have at least an extra column in the DBfile, telling it's<br>
level,<br>
> or such?<br>
><br>
> Regards,<br>
> Lars<br>
><br>
><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>
> _______________________________________________<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>
_______________________________________________<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><o:p></o:p></span></font></p>
</div>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>