Also is there an easy way to count the total number of points that are in a linestring? Cannot find the function to do so. <br>I want to keep track of how many points are left in a linestring as I go ahead and do the simplify.<br>
<br><div class="gmail_quote">On Thu, Jun 21, 2012 at 10:43 AM, Ed Linde <span dir="ltr"><<a href="mailto:edolinde@gmail.com" target="_blank">edolinde@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>I am building a linestring comprising of nearly 1000 points, now I want to pick every 10th point and reduce this to a linestring of 100 points!<br>I will use ST_linesimplify for this, but now I am wondering if there is a measure that shows me the "difference" between the two linestrings.<br>

Some measure like the "sum of squared errors"... I want to know what I lose in accuracy by discarding all these points and simplifying my <br>line segment. So if my line strings have (x,y) points in them, I would like to know the differences in "y" basically.<br>

Any ideas for a different kind of measure would be great too. I was initially thinking of measuring the distance between each point in the <br>original linestring (1000 points) against the new simplified linestring and adding their squares... would that work? Just wondering if <br>

there is a nicer, easier way to do this in Postgis?<br><br>Thanks,<br>Ed<br>
</blockquote></div><br>