diff --git a/pkgdown.yml b/pkgdown.yml index c35a375..1003395 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -2,7 +2,7 @@ pandoc: 3.1.11 pkgdown: 2.1.0 pkgdown_sha: ~ articles: {} -last_built: 2024-08-27T12:03Z +last_built: 2024-08-28T14:52Z urls: reference: https://nononoexe.github.io/pavement/reference article: https://nononoexe.github.io/pavement/articles diff --git a/reference/Rplot001.png b/reference/Rplot001.png index 31931d8..f74e585 100644 Binary files a/reference/Rplot001.png and b/reference/Rplot001.png differ diff --git a/reference/Rplot002.png b/reference/Rplot002.png index 1b22743..18b60ba 100644 Binary files a/reference/Rplot002.png and b/reference/Rplot002.png differ diff --git a/reference/index.html b/reference/index.html index 9affcf6..a6464a5 100644 --- a/reference/index.html +++ b/reference/index.html @@ -162,6 +162,12 @@

All functionssplit_line() + + +
Split a line into multiple lines
+
+ transform_to_cartesian()
diff --git a/reference/split_line-1.png b/reference/split_line-1.png new file mode 100644 index 0000000..062d2bb Binary files /dev/null and b/reference/split_line-1.png differ diff --git a/reference/split_line-2.png b/reference/split_line-2.png new file mode 100644 index 0000000..a1c37b3 Binary files /dev/null and b/reference/split_line-2.png differ diff --git a/reference/split_line.html b/reference/split_line.html new file mode 100644 index 0000000..7915695 --- /dev/null +++ b/reference/split_line.html @@ -0,0 +1,113 @@ + +Split a line into multiple lines — split_line • pavement + Skip to contents + + +
+
+
+ +
+

This function splits a line into multiple lines at specified points.

+
+ +
+

Usage

+
split_line(line, split_points, tolerance = 0.01)
+
+ +
+

Arguments

+ + +
line
+

A LINESTRING object.

+ + +
split_points
+

A sfc object containing points to split the line.

+ + +
tolerance
+

A numeric value representing the maximum distance +between the line and the split points. If the distance between a +split point and the line is greater than this value, the point +will not be used to split the line.

+ +
+
+

Value

+

A sfc object containing the split lines.

+
+ +
+

Examples

+
library(sf)
+
+# Create a line
+line <- create_linestring(0, 0, 5, 5)
+
+# Create a set of points
+split_points <- st_sfc(
+  st_point(c(0.0, 0.0)),
+  st_point(c(3.5, 3.5)),
+  st_point(c(1.0, 1.0))
+)
+
+# Plot the line and split points
+plot(line, lwd = 2)
+plot(split_points, add = TRUE, pch = 3, lwd = 2)
+
+
+# Split the line at the specified points
+split_lines <- split_line(line, split_points)
+
+# Plot the split lines
+plot(split_lines, lwd = 2, col = c("#E69F00", "#56B4E9", "#009E73"))
+
+
+
+
+ + +
+ + + +
+ + + + + + + diff --git a/search.json b/search.json index 3172e06..1abb1ce 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":"https://nononoexe.github.io/pavement/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2024 pavement authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://nononoexe.github.io/pavement/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Keisuke ANDO. Author, maintainer.","code":""},{"path":"https://nononoexe.github.io/pavement/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"ANDO K (2024). pavement: Analyzing Spatial Events Roadways. R package version 0.0.0.9000, https://nononoexe.github.io/pavement/, https://github.com/NONONOexe/pavement.","code":"@Manual{, title = {pavement: Analyzing Spatial Events on Roadways}, author = {Keisuke ANDO}, year = {2024}, note = {R package version 0.0.0.9000, https://nononoexe.github.io/pavement/}, url = {https://github.com/NONONOexe/pavement}, }"},{"path":[]},{"path":"https://nononoexe.github.io/pavement/index.html","id":"overview","dir":"","previous_headings":"","what":"Overview","title":"Analyzing Spatial Events on Roadways","text":"pavement package designed analyze spatial events occurring roadways. provides comprehensive toolkit working spatial data, empowering users understand patterns trends road-related phenomena.","code":""},{"path":"https://nononoexe.github.io/pavement/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Analyzing Spatial Events on Roadways","text":"can install development version pavement GitHub :","code":"# install.packages(\"devtools\") devtools::install_github(\"NONONOexe/pavement\")"},{"path":"https://nononoexe.github.io/pavement/index.html","id":"example","dir":"","previous_headings":"","what":"Example","title":"Analyzing Spatial Events on Roadways","text":"Examples added soon.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/bbox_to_polygon.html","id":null,"dir":"Reference","previous_headings":"","what":"Convert a bounding box to a polygon — bbox_to_polygon","title":"Convert a bounding box to a polygon — bbox_to_polygon","text":"function convert bounding box polygon.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/bbox_to_polygon.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Convert a bounding box to a polygon — bbox_to_polygon","text":"","code":"bbox_to_polygon(bbox)"},{"path":"https://nononoexe.github.io/pavement/reference/bbox_to_polygon.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Convert a bounding box to a polygon — bbox_to_polygon","text":"bbox numeric matrix two columns two rows. bbox represents minimum maximum coordinates.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/bbox_to_polygon.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Convert a bounding box to a polygon — bbox_to_polygon","text":"rectangle polygon size bbox.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_bbox.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a bounding box — create_bbox","title":"Create a bounding box — create_bbox","text":"function creates bounding box either cardinal coordinates (north, south, east west) center coordinates dimensions (center longitude latitude, size width height).","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_bbox.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a bounding box — create_bbox","text":"","code":"create_bbox(x)"},{"path":"https://nononoexe.github.io/pavement/reference/create_bbox.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a bounding box — create_bbox","text":"x named vector containing bounding box coordinates.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_bbox.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a bounding box — create_bbox","text":"2x2 matrix representing bounding box.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_linestring.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a linestring geometry — create_linestring","title":"Create a linestring geometry — create_linestring","text":"function takes series numeric arguments representing x y coordinates creates linestring geometry object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_linestring.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a linestring geometry — create_linestring","text":"","code":"create_linestring(x = NULL, ...)"},{"path":"https://nononoexe.github.io/pavement/reference/create_linestring.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a linestring geometry — create_linestring","text":"x numeric vector, first x coordinate. ... Additional numeric vectors.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_linestring.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a linestring geometry — create_linestring","text":"sf linestring object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_linestring.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a linestring geometry — create_linestring","text":"","code":"# Create a linestring from individual coordinates create_linestring(0, 0, 3, 0, 4, 3) #> LINESTRING (0 0, 3 0, 4 3) # Create a linestring from a numeric vector create_linestring(c(0, 0, 3, 0, 4, 3)) #> LINESTRING (0 0, 3 0, 4 3)"},{"path":"https://nononoexe.github.io/pavement/reference/create_road_network.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a road network from roads — create_road_network","title":"Create a road network from roads — create_road_network","text":"function constructs road network set roads. road network represented nodes links nodes. Nodes defined intersections roads endpoints road segments.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_road_network.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a road network from roads — create_road_network","text":"","code":"create_road_network(roads, directed = FALSE)"},{"path":"https://nononoexe.github.io/pavement/reference/create_road_network.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a road network from roads — create_road_network","text":"roads linestring object representing roads. directed Logical indicating whether road network directed.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_road_network.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a road network from roads — create_road_network","text":"road network object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_road_network.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a road network from roads — create_road_network","text":"","code":"# Create the road network road_network <- create_road_network(demo_roads) # Plot the road network plot(road_network)"},{"path":"https://nononoexe.github.io/pavement/reference/decompose_linestring.html","id":null,"dir":"Reference","previous_headings":"","what":"Decompose a linestring into a list of segments — decompose_linestring","title":"Decompose a linestring into a list of segments — decompose_linestring","text":"function decomposes linestring list segments, segment linestring connecting two consecutive points input linestring.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/decompose_linestring.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Decompose a linestring into a list of segments — decompose_linestring","text":"","code":"decompose_linestring(linestring)"},{"path":"https://nononoexe.github.io/pavement/reference/decompose_linestring.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Decompose a linestring into a list of segments — decompose_linestring","text":"linestring linestring object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/decompose_linestring.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Decompose a linestring into a list of segments — decompose_linestring","text":"list linestring objects, representing segment input linestring.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/decompose_linestring.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Decompose a linestring into a list of segments — decompose_linestring","text":"","code":"# Create a linestring object linestring <- create_linestring(0, 0, 1, 1, 2, 1, 4, 0) # Decompose the linestring into segments decompose_linestring(linestring) #> Geometry set for 3 features #> Geometry type: LINESTRING #> Dimension: XY #> Bounding box: xmin: 0 ymin: 0 xmax: 4 ymax: 1 #> CRS: NA #> LINESTRING (0 0, 1 1) #> LINESTRING (1 1, 2 1) #> LINESTRING (2 1, 4 0)"},{"path":"https://nononoexe.github.io/pavement/reference/demo_roads.html","id":null,"dir":"Reference","previous_headings":"","what":"Demo roads dataset — demo_roads","title":"Demo roads dataset — demo_roads","text":"demo_roads sample dataset representing simple roads. intended demonstration testing.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/demo_roads.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Demo roads dataset — demo_roads","text":"","code":"demo_roads"},{"path":"https://nononoexe.github.io/pavement/reference/demo_roads.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Demo roads dataset — demo_roads","text":"sf linestring object","code":""},{"path":"https://nononoexe.github.io/pavement/reference/demo_roads.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Demo roads dataset — demo_roads","text":"","code":"demo_roads #> Simple feature collection with 6 features and 2 fields #> Geometry type: LINESTRING #> Dimension: XY #> Bounding box: xmin: 0 ymin: 0 xmax: 7 ymax: 5 #> CRS: NA #> id layer geometry #> 1 rd_0001 1 LINESTRING (0 0, 3 0, 4 3) #> 2 rd_0002 NA LINESTRING (0 1, 7 1) #> 3 rd_0003 NA LINESTRING (2 3, 1 4, 0 3, ... #> 4 rd_0004 NA LINESTRING (2 3, 4 3) #> 5 rd_0005 NA LINESTRING (4 3, 7 3) #> 6 rd_0006 NA LINESTRING (6 0, 6 5)"},{"path":"https://nononoexe.github.io/pavement/reference/exclude_points.html","id":null,"dir":"Reference","previous_headings":"","what":"Exclude points from a points — exclude_points","title":"Exclude points from a points — exclude_points","text":"function excludes points points.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/exclude_points.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Exclude points from a points — exclude_points","text":"","code":"exclude_points(input_points, points_to_exclude)"},{"path":"https://nononoexe.github.io/pavement/reference/exclude_points.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Exclude points from a points — exclude_points","text":"input_points sfc object containing points. points_to_exclude sfc object containing points exclude.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/exclude_points.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Exclude points from a points — exclude_points","text":"sfc object containing points input_points points_to_exclude.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/exclude_points.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Exclude points from a points — exclude_points","text":"","code":"library(sf) # Create a set of points and a set of points to exclude points <- st_sfc( st_point(c(0, 0)), st_point(c(1, 0)), st_point(c(0, 1)), st_point(c(1, 1)) ) points_to_exclude <- st_sfc( st_point(c(0, 0)), st_point(c(1, 1)) ) plot(points) plot(points_to_exclude, add = TRUE, pch = 4) # Exclude points in `points_to_exclude` from `points` remain_points <- exclude_points(points, points_to_exclude) plot(remain_points)"},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_endpoints.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract road endpoints — extract_road_endpoints","title":"Extract road endpoints — extract_road_endpoints","text":"function extracts endpoints set roads. identifies counts roads intersect endpoint.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_endpoints.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract road endpoints — extract_road_endpoints","text":"","code":"extract_road_endpoints(roads)"},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_endpoints.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract road endpoints — extract_road_endpoints","text":"roads linestring object representing roads. column named road_id.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_endpoints.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract road endpoints — extract_road_endpoints","text":"points object representing road endpoints. endpoint following columns: origins: list road IDs intersect endpoint. n.overlaps: number roads intersect endpoint.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_intersections.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract road intersections — extract_road_intersections","title":"Extract road intersections — extract_road_intersections","text":"function identifies extracts intersections roads. considers intersections multiple roads layer.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_intersections.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract road intersections — extract_road_intersections","text":"","code":"extract_road_intersections(roads)"},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_intersections.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract road intersections — extract_road_intersections","text":"roads linestring object representing roads. column named layer column named road_id.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_intersections.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract road intersections — extract_road_intersections","text":"data frame following columns: origins: list road IDs intersect intersection. n.overlaps: number roads intersect intersection.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_links.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract road network links — extract_road_network_links","title":"Extract road network links — extract_road_network_links","text":"function extracts road network links set road geometries. splits road geometries nodes creates new sf object representing road network links.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_links.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract road network links — extract_road_network_links","text":"","code":"extract_road_network_links(roads, nodes)"},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_links.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract road network links — extract_road_network_links","text":"roads linestring object representing roads. nodes point object representing road network nodes.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_links.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract road network links — extract_road_network_links","text":"linestring object representing road network links.","code":""},{"path":[]},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_nodes.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract road network nodes — extract_road_network_nodes","title":"Extract road network nodes — extract_road_network_nodes","text":"function extracts nodes roads represented linestring objects downloaded OpenStreetMap. Nodes defined intersections roads endpoints road segments.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_nodes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract road network nodes — extract_road_network_nodes","text":"","code":"extract_road_network_nodes(roads)"},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_nodes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract road network nodes — extract_road_network_nodes","text":"roads linestring object representing roads.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_nodes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract road network nodes — extract_road_network_nodes","text":"points object representing road network nodes.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_segmented_network_nodes.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract nodes of segmented network from a road network — extract_segmented_network_nodes","title":"Extract nodes of segmented network from a road network — extract_segmented_network_nodes","text":"function extracts nodes regular intervals along link road network","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_segmented_network_nodes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract nodes of segmented network from a road network — extract_segmented_network_nodes","text":"","code":"extract_segmented_network_nodes(road_network, segment_length)"},{"path":"https://nononoexe.github.io/pavement/reference/extract_segmented_network_nodes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract nodes of segmented network from a road network — extract_segmented_network_nodes","text":"road_network road_network object created create_network(). segment_length length segment sample along links.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_segmented_network_nodes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract nodes of segmented network from a road network — extract_segmented_network_nodes","text":"sf object sampled points.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_segmented_network_nodes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Extract nodes of segmented network from a road network — extract_segmented_network_nodes","text":"","code":"# Create a road network road_network <- create_road_network(demo_roads) # Extract nodes with a segment length of 1 extract_segmented_network_nodes(road_network, 1) #> Simple feature collection with 29 features and 3 fields #> Attribute-geometry relationships: constant (2), NA's (1) #> Geometry type: POINT #> Dimension: XY #> Bounding box: xmin: 0 ymin: 0 xmax: 7 ymax: 5 #> CRS: NA #> First 10 features: #> id parent_link parent_road geometry #> 1 sn_00000001 lk_000001 rd_0001 POINT (0 0) #> 2 sn_00000002 lk_00000.... rd_0001,.... POINT (4 3) #> 11 sn_00000003 lk_000001 rd_0001 POINT (1.027046 0) #> 1.1 sn_00000004 lk_000001 rd_0001 POINT (2.054093 0) #> 1.2 sn_00000005 lk_000001 rd_0001 POINT (3.025658 0.07697505) #> 1.3 sn_00000006 lk_000001 rd_0001 POINT (3.350439 1.051317) #> 1.4 sn_00000007 lk_000001 rd_0001 POINT (3.675219 2.025658) #> 3 sn_00000008 lk_00000.... rd_0002,.... POINT (6 1) #> 5 sn_00000009 lk_000002 rd_0002 POINT (7 1) #> 4 sn_0000000a lk_000003 rd_0002 POINT (0 1)"},{"path":"https://nononoexe.github.io/pavement/reference/generate_ids.html","id":null,"dir":"Reference","previous_headings":"","what":"Generate unique IDs based on parent IDs — generate_ids","title":"Generate unique IDs based on parent IDs — generate_ids","text":"function generates unique IDs based parent IDs. first extracts first ID parent ID, ranks IDs uses ranks format IDs.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/generate_ids.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Generate unique IDs based on parent IDs — generate_ids","text":"","code":"generate_ids(parent_list, id_format)"},{"path":"https://nononoexe.github.io/pavement/reference/generate_ids.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Generate unique IDs based on parent IDs — generate_ids","text":"parent_list list parent IDs. id_format format string IDs.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/generate_ids.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Generate unique IDs based on parent IDs — generate_ids","text":"vector unique IDs.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/generate_ids.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Generate unique IDs based on parent IDs — generate_ids","text":"","code":"parent_list <- c(\"rd_0001\", \"rd_0002\", \"rd_0003\") id_format <- \"jn_%06x\" generate_ids(parent_list, id_format) #> [1] \"jn_000001\" \"jn_000002\" \"jn_000003\""},{"path":"https://nononoexe.github.io/pavement/reference/get_connected_links.html","id":null,"dir":"Reference","previous_headings":"","what":"Get connected links from a node — get_connected_links","title":"Get connected links from a node — get_connected_links","text":"function retrieves links connected specified node road network.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_connected_links.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get connected links from a node — get_connected_links","text":"","code":"get_connected_links(network, node_id)"},{"path":"https://nononoexe.github.io/pavement/reference/get_connected_links.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get connected links from a node — get_connected_links","text":"network road network object. node_id ID node.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_connected_links.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get connected links from a node — get_connected_links","text":"data frame containing connected links.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_connected_links.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get connected links from a node — get_connected_links","text":"","code":"# Create a road network road_network <- create_road_network(demo_roads) target_node <- road_network$nodes[3,] connected_links <- get_connected_links(road_network, target_node$id) # Plot the target node and the connected links plot(road_network, col = \"gray\") plot(connected_links$geometry, add = TRUE, col = \"#E69F00\", lwd = 2) plot(target_node$geometry, add = TRUE, pch = 19)"},{"path":"https://nononoexe.github.io/pavement/reference/get_end_point.html","id":null,"dir":"Reference","previous_headings":"","what":"Get the end point of a ","title":"Get the end point of a ","text":"function extracts end point \"LINESTRING\" \"MULTILINESTRING\"","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_end_point.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get the end point of a ","text":"","code":"get_end_point(x)"},{"path":"https://nononoexe.github.io/pavement/reference/get_end_point.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get the end point of a ","text":"x \"LINESTRING\" \"MULTILINESTRING\" object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_end_point.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get the end point of a ","text":"\"LINESTRING\" input, returns \"POINT\" object representing end point. \"MULTILINESTRING\" input, returns \"MULTIPOINT\" object representing end points \"LINESTRING\".","code":""},{"path":[]},{"path":"https://nononoexe.github.io/pavement/reference/get_end_point.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get the end point of a ","text":"","code":"# Example for \"LINESTRING\" linestring <- structure(matrix( c(0, 0, 1, 1, 2, 1), ncol = 2, byrow = TRUE ), class = c(\"XY\", \"LINESTRING\", \"sfg\")) end_point <- get_end_point(linestring) plot(linestring) plot(end_point, add = TRUE) # Example for \"MULTILINESTRING\" multilinestring <- structure(list( matrix(c(0, 0, 1, 1), ncol = 2, byrow = TRUE), matrix(c(2, 1, 3, 2), ncol = 2, byrow = TRUE) ), class = c(\"XY\", \"MULTILINESTRING\", \"sfg\")) end_points <- get_end_point(multilinestring) plot(multilinestring) plot(end_points, add = TRUE)"},{"path":"https://nononoexe.github.io/pavement/reference/get_start_point.html","id":null,"dir":"Reference","previous_headings":"","what":"Get the start point of a ","title":"Get the start point of a ","text":"function extracts start point \"LINESTRING\" \"MULTILINESTRING\"","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_start_point.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get the start point of a ","text":"","code":"get_start_point(x)"},{"path":"https://nononoexe.github.io/pavement/reference/get_start_point.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get the start point of a ","text":"x \"LINESTRING\" \"MULTILINESTRING\" object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_start_point.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get the start point of a ","text":"\"LINESTRING\" input, returns \"POINT\" object representing start point. \"MULTILINESTRING\" input, returns \"MULTIPOINT\" object representing start points \"LINESTRING\".","code":""},{"path":[]},{"path":"https://nononoexe.github.io/pavement/reference/get_start_point.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get the start point of a ","text":"","code":"# Example for \"LINESTRING\" linestring <- structure(matrix( c(0, 0, 1, 1, 2, 1), ncol = 2, byrow = TRUE ), class = c(\"XY\", \"LINESTRING\", \"sfg\")) start_point <- get_start_point(linestring) plot(linestring) plot(start_point, add = TRUE) # Example for \"MULTILINESTRING\" multilinestring <- structure(list( matrix(c(0, 0, 1, 1), ncol = 2, byrow = TRUE), matrix(c(2, 1, 3, 2), ncol = 2, byrow = TRUE) ), class = c(\"XY\", \"MULTILINESTRING\", \"sfg\")) start_points <- get_start_point(multilinestring) plot(multilinestring) plot(start_points, add = TRUE)"},{"path":"https://nononoexe.github.io/pavement/reference/is_linestring_endpoint.html","id":null,"dir":"Reference","previous_headings":"","what":"Check if a point is a start or end point of linestring — is_linestring_endpoint","title":"Check if a point is a start or end point of linestring — is_linestring_endpoint","text":"Check point start end point linestring","code":""},{"path":"https://nononoexe.github.io/pavement/reference/is_linestring_endpoint.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check if a point is a start or end point of linestring — is_linestring_endpoint","text":"","code":"is_linestring_endpoint(point, linestring)"},{"path":"https://nononoexe.github.io/pavement/reference/is_linestring_endpoint.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check if a point is a start or end point of linestring — is_linestring_endpoint","text":"point point object. linestring linestring object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/is_linestring_endpoint.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Check if a point is a start or end point of linestring — is_linestring_endpoint","text":"TRUE point start end point linestring, FALSE otherwise.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/osm_highway_values.html","id":null,"dir":"Reference","previous_headings":"","what":"Values for the 'highway' tag in OpenStreetMap data — osm_highway_values","title":"Values for the 'highway' tag in OpenStreetMap data — osm_highway_values","text":"osm_highway_values contains character vector values 'highway' tag OpenStreetMap data.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/osm_highway_values.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Values for the 'highway' tag in OpenStreetMap data — osm_highway_values","text":"","code":"osm_highway_values"},{"path":"https://nononoexe.github.io/pavement/reference/osm_highway_values.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Values for the 'highway' tag in OpenStreetMap data — osm_highway_values","text":"character vector length 12.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/osm_highway_values.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Values for the 'highway' tag in OpenStreetMap data — osm_highway_values","text":"","code":"osm_highway_values #> [1] \"motorway\" \"trunk\" \"primary\" \"secondary\" #> [5] \"tertiary\" \"unclassified\" \"residential\" \"motorway_link\" #> [9] \"trunk_link\" \"primary_link\" \"secondary_link\" \"tertiary_link\""},{"path":"https://nononoexe.github.io/pavement/reference/osm_roads.html","id":null,"dir":"Reference","previous_headings":"","what":"Download and process OpenStreetMap road data — osm_roads","title":"Download and process OpenStreetMap road data — osm_roads","text":"function downloads OpenStreetMap highway data within specified bounding box. corrects geometries reversed one-way roads. Optionally, crops data bounding box.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/osm_roads.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Download and process OpenStreetMap road data — osm_roads","text":"","code":"osm_roads(bbox, crop = TRUE)"},{"path":"https://nononoexe.github.io/pavement/reference/osm_roads.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Download and process OpenStreetMap road data — osm_roads","text":"bbox bounding box form matrix two rows two columns. crop logical value indicating whether crop data bounding box. Defaults TRUE.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/osm_roads.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Download and process OpenStreetMap road data — osm_roads","text":"data frame containing OpenStreetMap road data.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/osm_roads.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Download and process OpenStreetMap road data — osm_roads","text":"","code":"if (FALSE) { # \\dontrun{ # Download road data bbox <- create_bbox(c( north = 35.17377, south = 35.16377, east = 136.91590, west = 136.90090 )) roads <- osm_roads(bbox) # Plot the roads plot(roads$geometry) } # }"},{"path":"https://nononoexe.github.io/pavement/reference/pavement-package.html","id":null,"dir":"Reference","previous_headings":"","what":"pavement: Analyzing Spatial Events on Roadways — pavement-package","title":"pavement: Analyzing Spatial Events on Roadways — pavement-package","text":"Pavement package designed analyze spatial events occurring roadways. provides comprehensive toolkit working spatial data, empowering users understand patterns trends road-related phenomena.","code":""},{"path":[]},{"path":"https://nononoexe.github.io/pavement/reference/pavement-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"pavement: Analyzing Spatial Events on Roadways — pavement-package","text":"Maintainer: Keisuke ANDO ando@maslab.aitech.ac.jp","code":""},{"path":"https://nononoexe.github.io/pavement/reference/sample_points_along_linestring.html","id":null,"dir":"Reference","previous_headings":"","what":"Sample points along a linestring — sample_points_along_linestring","title":"Sample points along a linestring — sample_points_along_linestring","text":"function samples points regular intervals along linestring object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/sample_points_along_linestring.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Sample points along a linestring — sample_points_along_linestring","text":"","code":"sample_points_along_linestring(linestrings, segment_length)"},{"path":"https://nononoexe.github.io/pavement/reference/sample_points_along_linestring.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Sample points along a linestring — sample_points_along_linestring","text":"linestrings sfc object containing linestrings. segment_length desired length segment sampled points.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/sample_points_along_linestring.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Sample points along a linestring — sample_points_along_linestring","text":"sfc object containing sampled points.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/sample_points_along_linestring.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Sample points along a linestring — sample_points_along_linestring","text":"","code":"library(sf) # Create a linestrings linestrings <- st_sfc( create_linestring(0, 0, 1, 1, 1, 2), create_linestring(1, 1, 3, 1) ) # Sample points along the linestrings sampled_points <- sample_points_along_linestring(linestrings, 0.5) # Plot the sampled points plot(linestrings) plot(sampled_points, add = TRUE, pch = 16, col = c(\"#E69F00\", \"#56B4E9\"))"},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_cartesian.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform to Cartesian coordinates — transform_to_cartesian","title":"Transform to Cartesian coordinates — transform_to_cartesian","text":"function transforms spatial object Cartesian coordinates (plane rectangular coordinate system). Currently, supports coordinate system used Aichi Prefecture (JDG2011, EPSG:6675).","code":""},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_cartesian.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform to Cartesian coordinates — transform_to_cartesian","text":"","code":"transform_to_cartesian(x)"},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_cartesian.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform to Cartesian coordinates — transform_to_cartesian","text":"x spatial object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_cartesian.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform to Cartesian coordinates — transform_to_cartesian","text":"spatial object transformed Cartesian coordinates.","code":""},{"path":[]},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_geographic.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform to geographic coordinates — transform_to_geographic","title":"Transform to geographic coordinates — transform_to_geographic","text":"function transforms spatial object geographic coordinates (WGS84, EPSG:4326).","code":""},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_geographic.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform to geographic coordinates — transform_to_geographic","text":"","code":"transform_to_geographic(x)"},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_geographic.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform to geographic coordinates — transform_to_geographic","text":"x spatial object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_geographic.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform to geographic coordinates — transform_to_geographic","text":"spatial object transformed geographic coordinates.","code":""},{"path":[]}] +[{"path":"https://nononoexe.github.io/pavement/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2024 pavement authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://nononoexe.github.io/pavement/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Keisuke ANDO. Author, maintainer.","code":""},{"path":"https://nononoexe.github.io/pavement/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"ANDO K (2024). pavement: Analyzing Spatial Events Roadways. R package version 0.0.0.9000, https://nononoexe.github.io/pavement/, https://github.com/NONONOexe/pavement.","code":"@Manual{, title = {pavement: Analyzing Spatial Events on Roadways}, author = {Keisuke ANDO}, year = {2024}, note = {R package version 0.0.0.9000, https://nononoexe.github.io/pavement/}, url = {https://github.com/NONONOexe/pavement}, }"},{"path":[]},{"path":"https://nononoexe.github.io/pavement/index.html","id":"overview","dir":"","previous_headings":"","what":"Overview","title":"Analyzing Spatial Events on Roadways","text":"pavement package designed analyze spatial events occurring roadways. provides comprehensive toolkit working spatial data, empowering users understand patterns trends road-related phenomena.","code":""},{"path":"https://nononoexe.github.io/pavement/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Analyzing Spatial Events on Roadways","text":"can install development version pavement GitHub :","code":"# install.packages(\"devtools\") devtools::install_github(\"NONONOexe/pavement\")"},{"path":"https://nononoexe.github.io/pavement/index.html","id":"example","dir":"","previous_headings":"","what":"Example","title":"Analyzing Spatial Events on Roadways","text":"Examples added soon.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/bbox_to_polygon.html","id":null,"dir":"Reference","previous_headings":"","what":"Convert a bounding box to a polygon — bbox_to_polygon","title":"Convert a bounding box to a polygon — bbox_to_polygon","text":"function convert bounding box polygon.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/bbox_to_polygon.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Convert a bounding box to a polygon — bbox_to_polygon","text":"","code":"bbox_to_polygon(bbox)"},{"path":"https://nononoexe.github.io/pavement/reference/bbox_to_polygon.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Convert a bounding box to a polygon — bbox_to_polygon","text":"bbox numeric matrix two columns two rows. bbox represents minimum maximum coordinates.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/bbox_to_polygon.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Convert a bounding box to a polygon — bbox_to_polygon","text":"rectangle polygon size bbox.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_bbox.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a bounding box — create_bbox","title":"Create a bounding box — create_bbox","text":"function creates bounding box either cardinal coordinates (north, south, east west) center coordinates dimensions (center longitude latitude, size width height).","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_bbox.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a bounding box — create_bbox","text":"","code":"create_bbox(x)"},{"path":"https://nononoexe.github.io/pavement/reference/create_bbox.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a bounding box — create_bbox","text":"x named vector containing bounding box coordinates.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_bbox.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a bounding box — create_bbox","text":"2x2 matrix representing bounding box.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_linestring.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a linestring geometry — create_linestring","title":"Create a linestring geometry — create_linestring","text":"function takes series numeric arguments representing x y coordinates creates linestring geometry object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_linestring.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a linestring geometry — create_linestring","text":"","code":"create_linestring(x = NULL, ...)"},{"path":"https://nononoexe.github.io/pavement/reference/create_linestring.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a linestring geometry — create_linestring","text":"x numeric vector, first x coordinate. ... Additional numeric vectors.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_linestring.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a linestring geometry — create_linestring","text":"sf linestring object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_linestring.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a linestring geometry — create_linestring","text":"","code":"# Create a linestring from individual coordinates create_linestring(0, 0, 3, 0, 4, 3) #> LINESTRING (0 0, 3 0, 4 3) # Create a linestring from a numeric vector create_linestring(c(0, 0, 3, 0, 4, 3)) #> LINESTRING (0 0, 3 0, 4 3)"},{"path":"https://nononoexe.github.io/pavement/reference/create_road_network.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a road network from roads — create_road_network","title":"Create a road network from roads — create_road_network","text":"function constructs road network set roads. road network represented nodes links nodes. Nodes defined intersections roads endpoints road segments.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_road_network.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a road network from roads — create_road_network","text":"","code":"create_road_network(roads, directed = FALSE)"},{"path":"https://nononoexe.github.io/pavement/reference/create_road_network.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a road network from roads — create_road_network","text":"roads linestring object representing roads. directed Logical indicating whether road network directed.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_road_network.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a road network from roads — create_road_network","text":"road network object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/create_road_network.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a road network from roads — create_road_network","text":"","code":"# Create the road network road_network <- create_road_network(demo_roads) # Plot the road network plot(road_network)"},{"path":"https://nononoexe.github.io/pavement/reference/decompose_linestring.html","id":null,"dir":"Reference","previous_headings":"","what":"Decompose a linestring into a list of segments — decompose_linestring","title":"Decompose a linestring into a list of segments — decompose_linestring","text":"function decomposes linestring list segments, segment linestring connecting two consecutive points input linestring.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/decompose_linestring.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Decompose a linestring into a list of segments — decompose_linestring","text":"","code":"decompose_linestring(linestring)"},{"path":"https://nononoexe.github.io/pavement/reference/decompose_linestring.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Decompose a linestring into a list of segments — decompose_linestring","text":"linestring linestring object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/decompose_linestring.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Decompose a linestring into a list of segments — decompose_linestring","text":"list linestring objects, representing segment input linestring.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/decompose_linestring.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Decompose a linestring into a list of segments — decompose_linestring","text":"","code":"# Create a linestring object linestring <- create_linestring(0, 0, 1, 1, 2, 1, 4, 0) # Decompose the linestring into segments decompose_linestring(linestring) #> Geometry set for 3 features #> Geometry type: LINESTRING #> Dimension: XY #> Bounding box: xmin: 0 ymin: 0 xmax: 4 ymax: 1 #> CRS: NA #> LINESTRING (0 0, 1 1) #> LINESTRING (1 1, 2 1) #> LINESTRING (2 1, 4 0)"},{"path":"https://nononoexe.github.io/pavement/reference/demo_roads.html","id":null,"dir":"Reference","previous_headings":"","what":"Demo roads dataset — demo_roads","title":"Demo roads dataset — demo_roads","text":"demo_roads sample dataset representing simple roads. intended demonstration testing.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/demo_roads.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Demo roads dataset — demo_roads","text":"","code":"demo_roads"},{"path":"https://nononoexe.github.io/pavement/reference/demo_roads.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Demo roads dataset — demo_roads","text":"sf linestring object","code":""},{"path":"https://nononoexe.github.io/pavement/reference/demo_roads.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Demo roads dataset — demo_roads","text":"","code":"demo_roads #> Simple feature collection with 6 features and 2 fields #> Geometry type: LINESTRING #> Dimension: XY #> Bounding box: xmin: 0 ymin: 0 xmax: 7 ymax: 5 #> CRS: NA #> id layer geometry #> 1 rd_0001 1 LINESTRING (0 0, 3 0, 4 3) #> 2 rd_0002 NA LINESTRING (0 1, 7 1) #> 3 rd_0003 NA LINESTRING (2 3, 1 4, 0 3, ... #> 4 rd_0004 NA LINESTRING (2 3, 4 3) #> 5 rd_0005 NA LINESTRING (4 3, 7 3) #> 6 rd_0006 NA LINESTRING (6 0, 6 5)"},{"path":"https://nononoexe.github.io/pavement/reference/exclude_points.html","id":null,"dir":"Reference","previous_headings":"","what":"Exclude points from a points — exclude_points","title":"Exclude points from a points — exclude_points","text":"function excludes points points.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/exclude_points.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Exclude points from a points — exclude_points","text":"","code":"exclude_points(input_points, points_to_exclude)"},{"path":"https://nononoexe.github.io/pavement/reference/exclude_points.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Exclude points from a points — exclude_points","text":"input_points sfc object containing points. points_to_exclude sfc object containing points exclude.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/exclude_points.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Exclude points from a points — exclude_points","text":"sfc object containing points input_points points_to_exclude.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/exclude_points.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Exclude points from a points — exclude_points","text":"","code":"library(sf) # Create a set of points and a set of points to exclude points <- st_sfc( st_point(c(0, 0)), st_point(c(1, 0)), st_point(c(0, 1)), st_point(c(1, 1)) ) points_to_exclude <- st_sfc( st_point(c(0, 0)), st_point(c(1, 1)) ) plot(points) plot(points_to_exclude, add = TRUE, pch = 4) # Exclude points in `points_to_exclude` from `points` remain_points <- exclude_points(points, points_to_exclude) plot(remain_points)"},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_endpoints.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract road endpoints — extract_road_endpoints","title":"Extract road endpoints — extract_road_endpoints","text":"function extracts endpoints set roads. identifies counts roads intersect endpoint.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_endpoints.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract road endpoints — extract_road_endpoints","text":"","code":"extract_road_endpoints(roads)"},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_endpoints.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract road endpoints — extract_road_endpoints","text":"roads linestring object representing roads. column named road_id.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_endpoints.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract road endpoints — extract_road_endpoints","text":"points object representing road endpoints. endpoint following columns: origins: list road IDs intersect endpoint. n.overlaps: number roads intersect endpoint.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_intersections.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract road intersections — extract_road_intersections","title":"Extract road intersections — extract_road_intersections","text":"function identifies extracts intersections roads. considers intersections multiple roads layer.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_intersections.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract road intersections — extract_road_intersections","text":"","code":"extract_road_intersections(roads)"},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_intersections.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract road intersections — extract_road_intersections","text":"roads linestring object representing roads. column named layer column named road_id.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_intersections.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract road intersections — extract_road_intersections","text":"data frame following columns: origins: list road IDs intersect intersection. n.overlaps: number roads intersect intersection.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_links.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract road network links — extract_road_network_links","title":"Extract road network links — extract_road_network_links","text":"function extracts road network links set road geometries. splits road geometries nodes creates new sf object representing road network links.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_links.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract road network links — extract_road_network_links","text":"","code":"extract_road_network_links(roads, nodes)"},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_links.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract road network links — extract_road_network_links","text":"roads linestring object representing roads. nodes point object representing road network nodes.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_links.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract road network links — extract_road_network_links","text":"linestring object representing road network links.","code":""},{"path":[]},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_nodes.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract road network nodes — extract_road_network_nodes","title":"Extract road network nodes — extract_road_network_nodes","text":"function extracts nodes roads represented linestring objects downloaded OpenStreetMap. Nodes defined intersections roads endpoints road segments.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_nodes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract road network nodes — extract_road_network_nodes","text":"","code":"extract_road_network_nodes(roads)"},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_nodes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract road network nodes — extract_road_network_nodes","text":"roads linestring object representing roads.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_road_network_nodes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract road network nodes — extract_road_network_nodes","text":"points object representing road network nodes.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_segmented_network_nodes.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract nodes of segmented network from a road network — extract_segmented_network_nodes","title":"Extract nodes of segmented network from a road network — extract_segmented_network_nodes","text":"function extracts nodes regular intervals along link road network","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_segmented_network_nodes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract nodes of segmented network from a road network — extract_segmented_network_nodes","text":"","code":"extract_segmented_network_nodes(road_network, segment_length)"},{"path":"https://nononoexe.github.io/pavement/reference/extract_segmented_network_nodes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract nodes of segmented network from a road network — extract_segmented_network_nodes","text":"road_network road_network object created create_network(). segment_length length segment sample along links.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_segmented_network_nodes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract nodes of segmented network from a road network — extract_segmented_network_nodes","text":"sf object sampled points.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/extract_segmented_network_nodes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Extract nodes of segmented network from a road network — extract_segmented_network_nodes","text":"","code":"# Create a road network road_network <- create_road_network(demo_roads) # Extract nodes with a segment length of 1 extract_segmented_network_nodes(road_network, 1) #> Simple feature collection with 29 features and 3 fields #> Attribute-geometry relationships: constant (2), NA's (1) #> Geometry type: POINT #> Dimension: XY #> Bounding box: xmin: 0 ymin: 0 xmax: 7 ymax: 5 #> CRS: NA #> First 10 features: #> id parent_link parent_road geometry #> 1 sn_00000001 lk_000001 rd_0001 POINT (0 0) #> 2 sn_00000002 lk_00000.... rd_0001,.... POINT (4 3) #> 11 sn_00000003 lk_000001 rd_0001 POINT (1.027046 0) #> 1.1 sn_00000004 lk_000001 rd_0001 POINT (2.054093 0) #> 1.2 sn_00000005 lk_000001 rd_0001 POINT (3.025658 0.07697505) #> 1.3 sn_00000006 lk_000001 rd_0001 POINT (3.350439 1.051317) #> 1.4 sn_00000007 lk_000001 rd_0001 POINT (3.675219 2.025658) #> 3 sn_00000008 lk_00000.... rd_0002,.... POINT (6 1) #> 5 sn_00000009 lk_000002 rd_0002 POINT (7 1) #> 4 sn_0000000a lk_000003 rd_0002 POINT (0 1)"},{"path":"https://nononoexe.github.io/pavement/reference/generate_ids.html","id":null,"dir":"Reference","previous_headings":"","what":"Generate unique IDs based on parent IDs — generate_ids","title":"Generate unique IDs based on parent IDs — generate_ids","text":"function generates unique IDs based parent IDs. first extracts first ID parent ID, ranks IDs uses ranks format IDs.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/generate_ids.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Generate unique IDs based on parent IDs — generate_ids","text":"","code":"generate_ids(parent_list, id_format)"},{"path":"https://nononoexe.github.io/pavement/reference/generate_ids.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Generate unique IDs based on parent IDs — generate_ids","text":"parent_list list parent IDs. id_format format string IDs.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/generate_ids.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Generate unique IDs based on parent IDs — generate_ids","text":"vector unique IDs.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/generate_ids.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Generate unique IDs based on parent IDs — generate_ids","text":"","code":"parent_list <- c(\"rd_0001\", \"rd_0002\", \"rd_0003\") id_format <- \"jn_%06x\" generate_ids(parent_list, id_format) #> [1] \"jn_000001\" \"jn_000002\" \"jn_000003\""},{"path":"https://nononoexe.github.io/pavement/reference/get_connected_links.html","id":null,"dir":"Reference","previous_headings":"","what":"Get connected links from a node — get_connected_links","title":"Get connected links from a node — get_connected_links","text":"function retrieves links connected specified node road network.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_connected_links.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get connected links from a node — get_connected_links","text":"","code":"get_connected_links(network, node_id)"},{"path":"https://nononoexe.github.io/pavement/reference/get_connected_links.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get connected links from a node — get_connected_links","text":"network road network object. node_id ID node.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_connected_links.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get connected links from a node — get_connected_links","text":"data frame containing connected links.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_connected_links.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get connected links from a node — get_connected_links","text":"","code":"# Create a road network road_network <- create_road_network(demo_roads) target_node <- road_network$nodes[3,] connected_links <- get_connected_links(road_network, target_node$id) # Plot the target node and the connected links plot(road_network, col = \"gray\") plot(connected_links$geometry, add = TRUE, col = \"#E69F00\", lwd = 2) plot(target_node$geometry, add = TRUE, pch = 19)"},{"path":"https://nononoexe.github.io/pavement/reference/get_end_point.html","id":null,"dir":"Reference","previous_headings":"","what":"Get the end point of a ","title":"Get the end point of a ","text":"function extracts end point \"LINESTRING\" \"MULTILINESTRING\"","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_end_point.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get the end point of a ","text":"","code":"get_end_point(x)"},{"path":"https://nononoexe.github.io/pavement/reference/get_end_point.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get the end point of a ","text":"x \"LINESTRING\" \"MULTILINESTRING\" object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_end_point.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get the end point of a ","text":"\"LINESTRING\" input, returns \"POINT\" object representing end point. \"MULTILINESTRING\" input, returns \"MULTIPOINT\" object representing end points \"LINESTRING\".","code":""},{"path":[]},{"path":"https://nononoexe.github.io/pavement/reference/get_end_point.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get the end point of a ","text":"","code":"# Example for \"LINESTRING\" linestring <- structure(matrix( c(0, 0, 1, 1, 2, 1), ncol = 2, byrow = TRUE ), class = c(\"XY\", \"LINESTRING\", \"sfg\")) end_point <- get_end_point(linestring) plot(linestring) plot(end_point, add = TRUE) # Example for \"MULTILINESTRING\" multilinestring <- structure(list( matrix(c(0, 0, 1, 1), ncol = 2, byrow = TRUE), matrix(c(2, 1, 3, 2), ncol = 2, byrow = TRUE) ), class = c(\"XY\", \"MULTILINESTRING\", \"sfg\")) end_points <- get_end_point(multilinestring) plot(multilinestring) plot(end_points, add = TRUE)"},{"path":"https://nononoexe.github.io/pavement/reference/get_start_point.html","id":null,"dir":"Reference","previous_headings":"","what":"Get the start point of a ","title":"Get the start point of a ","text":"function extracts start point \"LINESTRING\" \"MULTILINESTRING\"","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_start_point.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get the start point of a ","text":"","code":"get_start_point(x)"},{"path":"https://nononoexe.github.io/pavement/reference/get_start_point.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get the start point of a ","text":"x \"LINESTRING\" \"MULTILINESTRING\" object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/get_start_point.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get the start point of a ","text":"\"LINESTRING\" input, returns \"POINT\" object representing start point. \"MULTILINESTRING\" input, returns \"MULTIPOINT\" object representing start points \"LINESTRING\".","code":""},{"path":[]},{"path":"https://nononoexe.github.io/pavement/reference/get_start_point.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get the start point of a ","text":"","code":"# Example for \"LINESTRING\" linestring <- structure(matrix( c(0, 0, 1, 1, 2, 1), ncol = 2, byrow = TRUE ), class = c(\"XY\", \"LINESTRING\", \"sfg\")) start_point <- get_start_point(linestring) plot(linestring) plot(start_point, add = TRUE) # Example for \"MULTILINESTRING\" multilinestring <- structure(list( matrix(c(0, 0, 1, 1), ncol = 2, byrow = TRUE), matrix(c(2, 1, 3, 2), ncol = 2, byrow = TRUE) ), class = c(\"XY\", \"MULTILINESTRING\", \"sfg\")) start_points <- get_start_point(multilinestring) plot(multilinestring) plot(start_points, add = TRUE)"},{"path":"https://nononoexe.github.io/pavement/reference/is_linestring_endpoint.html","id":null,"dir":"Reference","previous_headings":"","what":"Check if a point is a start or end point of linestring — is_linestring_endpoint","title":"Check if a point is a start or end point of linestring — is_linestring_endpoint","text":"Check point start end point linestring","code":""},{"path":"https://nononoexe.github.io/pavement/reference/is_linestring_endpoint.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check if a point is a start or end point of linestring — is_linestring_endpoint","text":"","code":"is_linestring_endpoint(point, linestring)"},{"path":"https://nononoexe.github.io/pavement/reference/is_linestring_endpoint.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check if a point is a start or end point of linestring — is_linestring_endpoint","text":"point point object. linestring linestring object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/is_linestring_endpoint.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Check if a point is a start or end point of linestring — is_linestring_endpoint","text":"TRUE point start end point linestring, FALSE otherwise.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/osm_highway_values.html","id":null,"dir":"Reference","previous_headings":"","what":"Values for the 'highway' tag in OpenStreetMap data — osm_highway_values","title":"Values for the 'highway' tag in OpenStreetMap data — osm_highway_values","text":"osm_highway_values contains character vector values 'highway' tag OpenStreetMap data.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/osm_highway_values.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Values for the 'highway' tag in OpenStreetMap data — osm_highway_values","text":"","code":"osm_highway_values"},{"path":"https://nononoexe.github.io/pavement/reference/osm_highway_values.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Values for the 'highway' tag in OpenStreetMap data — osm_highway_values","text":"character vector length 12.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/osm_highway_values.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Values for the 'highway' tag in OpenStreetMap data — osm_highway_values","text":"","code":"osm_highway_values #> [1] \"motorway\" \"trunk\" \"primary\" \"secondary\" #> [5] \"tertiary\" \"unclassified\" \"residential\" \"motorway_link\" #> [9] \"trunk_link\" \"primary_link\" \"secondary_link\" \"tertiary_link\""},{"path":"https://nononoexe.github.io/pavement/reference/osm_roads.html","id":null,"dir":"Reference","previous_headings":"","what":"Download and process OpenStreetMap road data — osm_roads","title":"Download and process OpenStreetMap road data — osm_roads","text":"function downloads OpenStreetMap highway data within specified bounding box. corrects geometries reversed one-way roads. Optionally, crops data bounding box.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/osm_roads.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Download and process OpenStreetMap road data — osm_roads","text":"","code":"osm_roads(bbox, crop = TRUE)"},{"path":"https://nononoexe.github.io/pavement/reference/osm_roads.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Download and process OpenStreetMap road data — osm_roads","text":"bbox bounding box form matrix two rows two columns. crop logical value indicating whether crop data bounding box. Defaults TRUE.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/osm_roads.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Download and process OpenStreetMap road data — osm_roads","text":"data frame containing OpenStreetMap road data.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/osm_roads.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Download and process OpenStreetMap road data — osm_roads","text":"","code":"if (FALSE) { # \\dontrun{ # Download road data bbox <- create_bbox(c( north = 35.17377, south = 35.16377, east = 136.91590, west = 136.90090 )) roads <- osm_roads(bbox) # Plot the roads plot(roads$geometry) } # }"},{"path":"https://nononoexe.github.io/pavement/reference/pavement-package.html","id":null,"dir":"Reference","previous_headings":"","what":"pavement: Analyzing Spatial Events on Roadways — pavement-package","title":"pavement: Analyzing Spatial Events on Roadways — pavement-package","text":"Pavement package designed analyze spatial events occurring roadways. provides comprehensive toolkit working spatial data, empowering users understand patterns trends road-related phenomena.","code":""},{"path":[]},{"path":"https://nononoexe.github.io/pavement/reference/pavement-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"pavement: Analyzing Spatial Events on Roadways — pavement-package","text":"Maintainer: Keisuke ANDO ando@maslab.aitech.ac.jp","code":""},{"path":"https://nononoexe.github.io/pavement/reference/sample_points_along_linestring.html","id":null,"dir":"Reference","previous_headings":"","what":"Sample points along a linestring — sample_points_along_linestring","title":"Sample points along a linestring — sample_points_along_linestring","text":"function samples points regular intervals along linestring object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/sample_points_along_linestring.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Sample points along a linestring — sample_points_along_linestring","text":"","code":"sample_points_along_linestring(linestrings, segment_length)"},{"path":"https://nononoexe.github.io/pavement/reference/sample_points_along_linestring.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Sample points along a linestring — sample_points_along_linestring","text":"linestrings sfc object containing linestrings. segment_length desired length segment sampled points.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/sample_points_along_linestring.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Sample points along a linestring — sample_points_along_linestring","text":"sfc object containing sampled points.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/sample_points_along_linestring.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Sample points along a linestring — sample_points_along_linestring","text":"","code":"library(sf) # Create a linestrings linestrings <- st_sfc( create_linestring(0, 0, 1, 1, 1, 2), create_linestring(1, 1, 3, 1) ) # Sample points along the linestrings sampled_points <- sample_points_along_linestring(linestrings, 0.5) # Plot the sampled points plot(linestrings) plot(sampled_points, add = TRUE, pch = 16, col = c(\"#E69F00\", \"#56B4E9\"))"},{"path":"https://nononoexe.github.io/pavement/reference/split_line.html","id":null,"dir":"Reference","previous_headings":"","what":"Split a line into multiple lines — split_line","title":"Split a line into multiple lines — split_line","text":"function splits line multiple lines specified points.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/split_line.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Split a line into multiple lines — split_line","text":"","code":"split_line(line, split_points, tolerance = 0.01)"},{"path":"https://nononoexe.github.io/pavement/reference/split_line.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Split a line into multiple lines — split_line","text":"line LINESTRING object. split_points sfc object containing points split line. tolerance numeric value representing maximum distance line split points. distance split point line greater value, point used split line.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/split_line.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Split a line into multiple lines — split_line","text":"sfc object containing split lines.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/split_line.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Split a line into multiple lines — split_line","text":"","code":"library(sf) # Create a line line <- create_linestring(0, 0, 5, 5) # Create a set of points split_points <- st_sfc( st_point(c(0.0, 0.0)), st_point(c(3.5, 3.5)), st_point(c(1.0, 1.0)) ) # Plot the line and split points plot(line, lwd = 2) plot(split_points, add = TRUE, pch = 3, lwd = 2) # Split the line at the specified points split_lines <- split_line(line, split_points) # Plot the split lines plot(split_lines, lwd = 2, col = c(\"#E69F00\", \"#56B4E9\", \"#009E73\"))"},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_cartesian.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform to Cartesian coordinates — transform_to_cartesian","title":"Transform to Cartesian coordinates — transform_to_cartesian","text":"function transforms spatial object Cartesian coordinates (plane rectangular coordinate system). Currently, supports coordinate system used Aichi Prefecture (JDG2011, EPSG:6675).","code":""},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_cartesian.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform to Cartesian coordinates — transform_to_cartesian","text":"","code":"transform_to_cartesian(x)"},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_cartesian.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform to Cartesian coordinates — transform_to_cartesian","text":"x spatial object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_cartesian.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform to Cartesian coordinates — transform_to_cartesian","text":"spatial object transformed Cartesian coordinates.","code":""},{"path":[]},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_geographic.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform to geographic coordinates — transform_to_geographic","title":"Transform to geographic coordinates — transform_to_geographic","text":"function transforms spatial object geographic coordinates (WGS84, EPSG:4326).","code":""},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_geographic.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform to geographic coordinates — transform_to_geographic","text":"","code":"transform_to_geographic(x)"},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_geographic.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform to geographic coordinates — transform_to_geographic","text":"x spatial object.","code":""},{"path":"https://nononoexe.github.io/pavement/reference/transform_to_geographic.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform to geographic coordinates — transform_to_geographic","text":"spatial object transformed geographic coordinates.","code":""},{"path":[]}] diff --git a/sitemap.xml b/sitemap.xml index a0f2baf..c796b59 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -26,6 +26,7 @@ https://nononoexe.github.io/pavement/reference/osm_roads.html https://nononoexe.github.io/pavement/reference/pavement-package.html https://nononoexe.github.io/pavement/reference/sample_points_along_linestring.html +https://nononoexe.github.io/pavement/reference/split_line.html https://nononoexe.github.io/pavement/reference/transform_to_cartesian.html https://nononoexe.github.io/pavement/reference/transform_to_geographic.html