<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>I think postgis has native functions for st_intersects when at least one of the geometries is a point. And there is two paths in the code. One that prepares the "not point" geometry if it is to be used multiple times and one that doesn't.</div><div><br></div><div>I do not get the idea do far. Is it a tolerance you are implementing? </div><div><br></div><div><br></div><div><br></div><div>Best regards</div><div>Nicklad</div><div><br></div><div><div style="font-size:75%;color:#575757">Skickat från min Samsung Mobil</div></div><br><br><br>-------- Originalmeddelande --------<br>Från: Rémi Cura <remi.cura@gmail.com> <br>Datum: 06-11-2013  8:59  (GMT+01:00) <br>Till: PostGIS Development Discussion <postgis-devel@lists.osgeo.org> <br>Rubrik: [postgis-devel] SNapPointToLine : GEOS : where is the code for st_intersects between line and point? <br> <br><br><div dir="ltr">Hey,<div>I've been working on a ST_SnapPointToLine for the past week,</div><div>by reverse engineering when points are considered to be on line by st_intersect.</div><div><br></div><div>The (classic) problem is purely a numerical issue, and I suspect a problem in design of st_intersects.</div>
<div><br></div><div><br></div><div>So far my solution doesn't work for all line, can someone please point me in the right direction in GEOS so I can see if something can be improved regarding precision.</div><div><br>
</div><div>I know where the API is, but I'm looking for the exact part that decide if a point and a line intersects.</div><div><br></div><div>Cheers,</div><div><br></div><div>Rémi-C</div></div>
</body>