<div dir="ltr">Hey everybody,<div><br></div><div>again tolerance issue ! what ! ;-)</div><div><br></div><div>In the liblwgeom.c file , </div><div>I changed </div><div>"if ( dist > 0) /* TODO: accept a tolerance ? */"</div>
<div><br></div><div>to</div><div><br></div><div><div>//@TOTEST @CHECK change by Remi-C : adding a small tolerance</div><div><span class="" style="white-space:pre"> </span>vstol = ptarray_length_2d(lwline_in->points) / 1e12; //note : we don't really need to compute length, we could just compute</div>
<div><span class="" style="white-space:pre"> </span>//max (abs(max(x)-min(x)) , abs(max(y)-min(y)) ), it would be way faster</div><div><span class="" style="white-space:pre"> </span>if ( dist > vstol ) /* TODO: accept a tolerance ? */</div>
</div><div><br></div><div><br></div><div>So know we can split a line by a point !</div><div>Any thought?</div><div><br></div><div>Cheers,</div><div>Rémi-C</div></div>