to_sf | R Documentation |
FMI API response object's XML (GML) content is temporarily wrtitten on disk and then immediately read back in into a sf object.
to_sf(api_obj)
api_obj |
fmi api object |
sf object
For internal use, not exported.
Joona Lehtomäki joona.lehtomaki@iki.fi
fmi_api
## Not run:
response <- fmi_api(request = "getFeature",
storedquery_id = "fmi::observations::weather::daily::timevaluepair",
starttime = "2019-01-01", endtime = "2019-01-04",
fmisid = 100946)
sf_obj <- to_sf(response)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.