<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" 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"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3603" name=GENERATOR><!--[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 name="PlaceName"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="PlaceType"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="City"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="country-region"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="place"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="PersonName"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
font-family: Tahoma;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.E-postmall17 {
COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
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 vLink=blue link=blue>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=330314912-22102009>Hi, </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=330314912-22102009> </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=330314912-22102009>As this is not Mapserver problem I would suggest to
move the discussion to some OpenStreetMap mailing list. Talk,
tagging or development, I can't say which one is the best.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=330314912-22102009></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>-<SPAN class=330314912-22102009>Jukka
Rahkonen-</SPAN></FONT></FONT></FONT><BR></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=fi dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Lähettäjä:</B>
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>Puolesta </B>Lars
Westerlind<BR><B>Lähetetty:</B> 22. lokakuuta 2009
14:33<BR><B>Vastaanottaja:</B> mapserver-users@lists.osgeo.org<BR><B>Aihe:</B>
SV: SV: [mapserver-users] Shapefiles with islands<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hello,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">At<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">there are suggestions
to use<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><A
href="http://downloads.cloudmade.com/">http://downloads.cloudmade.com/</A><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">For
instance,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">/Lars<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN lang=SV style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Från:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Steve
Grey [mailt</SPAN></FONT><FONT face=Tahoma size=2><SPAN lang=SV
style="FONT-SIZE: 10pt; 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 face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt">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 face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">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 face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><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 face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><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 face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>