View source: R/gtfs_validation.R
| validate_shape_geometry | R Documentation |
Checks:
Class (should be SF, not SFC)
Geometry type (i.e., is multilinestring)
Presence of shape_id column, if desired
Number of shapes present, if desired
Correct CRS, if desired
validate_shape_geometry(
shape_geometry,
max_length = Inf,
require_shape_id = TRUE,
match_crs = NULL
)
shape_geometry |
SF multilinestring |
max_length |
numeric of max number of objects in SF |
require_shape_id |
should shape ID be required in SF? |
match_crs |
CRS that SF should have |
Not intended for external use.
Throws error if not satisfied
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.