<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=034593113-27102010></SPAN><FONT
face=Arial><FONT color=#0000ff><FONT size=2>H<SPAN
class=034593113-27102010>i,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=034593113-27102010></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=034593113-27102010>The biggest lake has more than 5000 islands and
lots of bays and everything so I was thinking that a simple automatic tool
would for sure break the topology, and sooner than I could
have explained how a good tool should
behave I had splitted the ten biggest lakes by
hand. I can't even imagine how hard it would to be to code such a
tool. It should not make invalid geometries and it should create new
vertices so that new polygons could zigzag between the islands without splitting
those, and the new pieces should have about same total number of vertices
with variable number of islands. It was rather easy to iterate with bare
eyes. </SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=034593113-27102010></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=034593113-27102010>-Jukka-</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial></FONT><BR></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV dir=ltr lang=fi class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Lähettäjä:</B> sebastianovide@gmail.com
[mailto:sebastianovide@gmail.com] <B>Puolesta </B>Sebastian E.
Ovide<BR><B>Lähetetty:</B> 27. lokakuuta 2010 16:21<BR><B>Vastaanottaja:</B>
Rahkonen Jukka<BR><B>Kopio:</B>
mapserver-users@lists.osgeo.org<BR><B>Aihe:</B> Re: [mapserver-users] Maximum
number of points in a poligon<BR></FONT><BR></DIV>
<DIV></DIV>Do you spliited the polygons manually or you have some script ?
perhaps using gdal ?<BR><BR>
<DIV class=gmail_quote>On Wed, Oct 27, 2010 at 1:36 PM, Rahkonen Jukka <SPAN
dir=ltr><<A
href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2
face=Arial><SPAN>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2
face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN>All I
can say is that with our data the service went all to slow for the end users
long before jamming. We have been splitting the biggest lake polygons
into pieces with no more than 45000 vertises because that was the limit
of reasonable speed in our environment. But in that case the
limiting factor was the database and "contains" queries, not
Mapserver. Anyhow, splitting the lakes was good for Mapserver
too. For some other layers we have made simplified versions for the
far-away zooms. Simplifying is better for WMS use if polygons are drawn
with different outline colour but it gives a bit more work with building the
scale dependent layers.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2
face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN>-Jukka
Rahkonen-</SPAN></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=fi align=left>
<HR>
<FONT size=2 face=Tahoma><B>Lähettäjä:</B> <A
href="mailto:mapserver-users-bounces@lists.osgeo.org"
target=_blank>mapserver-users-bounces@lists.osgeo.org</A> [mailto:<A
href="mailto:mapserver-users-bounces@lists.osgeo.org"
target=_blank>mapserver-users-bounces@lists.osgeo.org</A>] <B>Puolesta
</B>Sebastian E. Ovide<BR><B>Lähetetty:</B> 27. lokakuuta 2010
14:57<BR><B>Vastaanottaja:</B> <A
href="mailto:mapserver-users@lists.osgeo.org"
target=_blank>mapserver-users@lists.osgeo.org</A><BR><B>Aihe:</B>
[mapserver-users] Maximum number of points in a
poligon<BR></FONT><BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>
<DIV></DIV>Hi All,
<DIV><BR></DIV>
<DIV>I have a shape with 2M polygons. The biggest one has 13k points. It
works very well, and fast enough.</DIV>
<DIV><BR></DIV>
<DIV>I have another shape with 300k polygons and the biggest one has 800k
points... This shape hangs MapServer !... and I have to kill the process
by hand using kill -9. (see the other thread: process survive after
killing apache). The shape files can be opened with ogrinfo though</DIV>
<DIV><BR></DIV>
<DIV>Is there a maximum number of points for single polygon supported by
MapServer ?</DIV>
<DIV><BR></DIV>
<DIV>Thanks<BR>-- <BR>Sebastian E.
Ovide<BR><BR><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Sebastian E. Ovide<BR><BR><BR></BLOCKQUOTE></BODY></HTML>