View source: R/geometrical_functions_sf.R

add_vertices_lines | R Documentation |

Add vertices (feature collection of points) to their nearest lines (feature collection of linestrings), may fail if the line geometries are self intersecting.

```
add_vertices_lines(lines, points, nearest_lines_idx, mindist)
```

`lines` |
The feature collection of linestrings to modify |

`points` |
The feature collection of points to add to as vertex to the lines |

`nearest_lines_idx` |
For each point, the index of the nearest line |

`mindist` |
The minimum distance between one point and the extremity of the line to add the point as a vertex. |

A feature collection of linestrings

```
#This is an internal function, no example provided
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.