View source: R/gj_linestring_to_st_linestring.R
| gj_linestring_to_st_linestring | R Documentation |
Convert a GeoJSON linestring into an st_linestring
gj_linestring_to_st_linestring(gj_ls)
gj_ls |
A GeoJSON linestring |
The linestring as sf::sfg
Other helpers:
absolute_angle(),
add_dates(),
datetime_as_isoweek(),
datetime_as_seasonweek(),
datetime_as_season(),
datetime_as_turtle_date(),
exclude_training_species(),
exclude_training_surveys(),
extract_possibly(),
fdate_as_tdate(),
filter_missing_site(),
filter_missing_survey(),
filter_surveys_missing_end(),
filter_surveys_requiring_qa(),
filter_wastd_season(),
get_more(),
httpdate_as_gmt08_turtle_date(),
httpdate_as_gmt08(),
httpdate_as_season(),
humanize(),
join_tsc_sites(),
leaflet_basemap(),
map_chr_hack(),
mean_bearing(),
mis_bearing(),
odkc_works(),
read_table(),
sentencecase(),
sf_as_tbl(),
tdate_as_fdate(),
tracks_as_geojson(),
tun(),
urlize(),
verify_odkc_turtledata(),
verify_wamtram_data(),
verify_wastd_data(),
wastd_works(),
wastdr_msg_abort(),
wastdr_msg_info(),
wastdr_msg_noop(),
wastdr_msg_success(),
wastdr_msg_warn(),
wastdr_settings(),
wastdr_setup()
## Not run:
gj_ls <- paste0(
"-14.803659 128.403426 10.9 5.9;",
"-14.803719 128.40326 1.7 1.9;",
"-14.803756 128.40317 1.9 1.7;",
"-14.80383 128.402983 1.7 1.6;",
"-14.803913 128.402786 1.4 1.6;"
)
x <- gj_linestring_to_st_linestring(gj_ls)
class(x) == c("XYZM", "LINESTRING", "sfg")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.