<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Dave,<br><br>I would have thought ST_Simplify() would met your requirements.<br><br>If you use it with a buffer distance of zero, then the full resolution is retained, but any points on a straight boundary segment which are redundant are removed. This is the minimum number of vertices required to define the polygon in full resolution.<br><br>You can progressively remove vertices which make least changes to the polygon definition by increasing the buffer distance, but where boundaries are shared between neighbouring polygons this can cause mis-alignments. <br><br>Cheers,<br><br> Brent Wood <br><br>--- On <b>Sat, 4/7/12, Dave Potts <i><dave.potts@pinan.co.uk></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Dave Potts <dave.potts@pinan.co.uk><br>Subject:
[postgis-users] simplifying a polygon<br>To: postgis-users@postgis.refractions.net<br>Date: Saturday, April 7, 2012, 9:52 AM<br><br><div class="plainMail"><br>I have polygon made up of many different points,it some cases its rather<br>to accurate for my requirments,i.e. its generating a lot points to<br>describe a minor change.<br><br>I had throught that by saying something like<br><br><br>select ((st_dumppoints(<br>(st_intersection(ST_Segmentize(st_exteriorRing(jt.the_Geom),70000),pa.the_geom))<br>)).geom) as the_geom from<br> journey_table jt, coast_polygon pa where jt.generation=1<br><br>Would give me minmum list of data points for describing a polygon. What<br>it does give me long gap, 3 coordinates, another long grap then another 3<br>coorindates etc<br><br>Where these 3 coordinates are they close together. What I had hope to get<br>list the lowest number
points that would be useful to describe a polygon.<br><br>Q. Is there a better way of doing this.<br><br>Dave.<br><br><br>_______________________________________________<br>postgis-users mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net" href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></div></blockquote></td></tr></table>