<!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>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=034593113-27102010>The biggest lake has more than&nbsp;5000 islands and 
lots of bays&nbsp;and everything so I was thinking that a simple automatic tool 
would for sure break the topology, and sooner than I&nbsp;could 
have&nbsp;explained&nbsp;how a good tool should 
behave&nbsp;I&nbsp;had&nbsp;splitted&nbsp;the ten biggest lakes&nbsp;by 
hand.&nbsp;I can't even imagine how hard it would to be to code such a 
tool.&nbsp;It should not make invalid geometries and it should create new 
vertices so that new polygons could zigzag between the islands without splitting 
those,&nbsp;and the new pieces should have about same total number of vertices 
with variable number of islands. It was rather easy to iterate&nbsp;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>&nbsp;</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>&lt;<A 
  href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</A>&gt;</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>&nbsp;</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.&nbsp; We have been splitting the biggest lake polygons 
    into&nbsp;pieces with no more than 45000 vertises because that was the limit 
    of reasonable speed in our environment.&nbsp; But&nbsp;in that case the 
    limiting factor was the database and "contains" queries, not 
    Mapserver.&nbsp; Anyhow, splitting the lakes was good for Mapserver 
    too.&nbsp; For some other layers we have made simplified versions for the 
    far-away zooms.&nbsp;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>&nbsp;</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>