<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Hallo Nicklas<BR></DIV>
<DIV>fortunately I have linestring version of the polygon, but it seems that the linestirings are not continuous. Does st_distance still apply? Or are there any postgis function to make the polyline continuous?</DIV>
<DIV> </DIV>
<DIV>kind regards,</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> "nicklas.aven@jordogskog.no" <nicklas.aven@jordogskog.no><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> PostGIS Users Discussion <postgis-users@postgis.refractions.net><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, October 1, 2009 3:50:37 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [postgis-users] polygon minimum width<BR></FONT><BR>
<DIV align=left>Hallo</DIV>
<DIV align=left> </DIV>
<DIV align=left>I think the easiest way is to make a linestring of the polygon.boundary and then cut the line in the start and end so you get two more or less paralell lines.. Then you can use st_distance to find the shortest distance between them.</DIV>
<DIV align=left> </DIV>
<DIV align=left>Hope that helps</DIV>
<DIV align=left>Nicklas<BR><BR>2009-10-01 Surya Tarigan wrote:<BR><BR>></DIV>
<DIV>></DIV>
<DIV>Dear list, </DIV>
<DIV>></DIV>
<DIV> </DIV>
<DIV>></DIV>
<DIV>I  have a river polygon with polygon length about 20 km.  How can I query the minimum width of  the river polygon. I tried to search previous threads, but I could not find any clue.</DIV>
<DIV>></DIV>
<DIV> </DIV>
<DIV>></DIV>
<DIV>kind regards,</DIV>
<DIV>></DIV>
<DIV> </DIV>
<DIV>></DIV>
<DIV>surya</DIV><BR>> </DIV></DIV></div><br>



      </body></html>