<div dir="ltr"><div>You could test if the Hausdorff distance between the lines is less than a tolerance value:</div><div><br></div><div>ST_HausdorffDistance(geom1, geom2) < tolerance</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 5, 2019 at 5:59 AM Guillaume ARNAUD <<a href="mailto:guillaume.arnaud@ledepartement82.fr">guillaume.arnaud@ledepartement82.fr</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
    <p>I need to compare these 2 lines (srid : 2154) : <br>
    </p>
    <p>"LINESTRING(571927 6327619.2,571906.899999999
      6327612.4,571826.700000003 6327586.3,571770.600000001
      6327567,571718.700000003 6327549.9,571670.899999999
      6327532.4,571589.5 6327505)"</p>
    <p>"LINESTRING(571927 6327619.2,571906.899999999
      6327612.4,571826.700000003 6327586.3,571824.343590402
      6327585.48932789,571770.600000001 6327567,571718.700000003
      6327549.9,571670.899999999 6327532.4,571589.5 6327505)"</p>
    <p>I want the result of sql say that it match ?</p>
    <p>The difference is only this point : 571824.343590402
      6327585.48932789 (add by an app) and this point is very close from
      the first line : 1.98930589140335e-09 m so, can i add a tolerance
      to compare ?<br></p>
    </div></blockquote></div></div>