简体   繁体   中英

Point of intersection

I am using postgis for my spatial database.

in my database I have a set of lines in one table and a set of points in another table. How Is it possible to determine which fits best as a point of intersection of two lines? What i am after is something related to the st_intersection function.

PostGIS's ST_INTERSECTION will give you the geometry of the point of intersection between the two lines, and then a MIN(ST_DISTANCE([...], [...]) between this intersection and your points will give you the best fit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM