<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(19,79,92)"><span id="gmail-result_box" class="gmail-" lang="en"><span>Already, I have just 
understood an error .. is that in "waypoint" (table) there are only points of 
interest and not the polylines that interest me!</span><br><span class="gmail-">They
 are scattered in 1000 tables... (!!!!) Thanks phpPGAdmin... <br>I am looking for how ogr2ogr can make ONE table with ALL polylines and not a table for each...</span></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-27 15:28 GMT+02:00 Felix Kunde <span dir="ltr"><<a href="mailto:felix-kunde@gmx.de" target="_blank">felix-kunde@gmx.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Would ST_ShortestLine help?<br>
<br>
<a href="https://postgis.net/docs/ST_ShortestLine.html" rel="noreferrer" target="_blank">https://postgis.net/docs/ST_<wbr>ShortestLine.html</a><br>
 <br>
 <br>
<br>
Gesendet: Donnerstag, 27. April 2017 um 11:24 Uhr<br>
Von: "Mickael MONSIEUR" <<a href="mailto:mickael.monsieur@gmail.com">mickael.monsieur@gmail.com</a>><br>
An: <a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.<wbr>org</a><br>
Betreff: [postgis-users] Select closest line<br>
<br>
​Hi,<br>
<br>
I imported a kml file with ogr2ogr and I have a well-filled database, including a "waypoints" table and hexadecimal coordinates in the "wkb_geometry" column.<br>
<br>
I would like with a GPS coordinate, select the closest lines.<br>
<br>
I found this function: <a href="https://postgis.net/docs/ST_ClosestPoint.html" rel="noreferrer" target="_blank">https://postgis.net/docs/ST_<wbr>ClosestPoint.html</a> but I can not put it into practice.<br>
<br>
In my result, I would like to have the GPS positions of the nearest line, as well as the distance in kilometers between the line and my GPS coordinates.<br>
<br>
Someone would have an idea how to do it?<br>
<br>
I admit to not being comfortable with the spacial search and the different types of coordinates (mercator, google, degrees, gps ..) I get lost completely.<br>
 <br>
Thanks,<br>
Mickael_______________________<wbr>________________________ postgis-users mailing list <a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a> <a href="https://lists.osgeo.org/mailman/listinfo/postgis-users[https://lists.osgeo.org/mailman/listinfo/postgis-users]" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/postgis-<wbr>users[https://lists.osgeo.org/<wbr>mailman/listinfo/postgis-<wbr>users]</a><br>
______________________________<wbr>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/postgis-users</a></blockquote></div><br></div>