hm_get_test | R Documentation |
Access 5 datasets that are used in vignettes and in testing.
hm_get_test(item = c("coast", "buffer", "nofly", "grid", "route"))
item |
Any one of |
"coast"
A dataset containing sf::MULTIPOLYGONS for New Zealand. Simplified version of Stats NZ data, at 1km resolution.
"buffer"
As "coast"
but with an added 30km buffer to keep supersonic
flight away from the coast.
"nofly"
As "buffer"
, but limited to Buller district with a 40km buffer.
To test additional no-fly zones.
"grid"
Latitude-longitude-based routing grid around New Zealand at 30km target
distance, as generated by make_route_grid
, so format is GridLat
"route"
Some very unlikely supersonic routes around New Zealand using the test aircraft that was given a very short range and slow subsonic cruise to get the example to 'work'. Includes one refuelling stop (!) in Wellington. [Not for operational use!] Returns a dataframe.
This is not the normal way to access package test data. But the usual, direct, way fails on some machines that have some older software (a known feature of the 'sf' package). This is a least-ugly workaround.
See list above
https://datafinder.stats.govt.nz/layer/104266-territorial-authority-2020-clipped-generalised/
NZ_coast <- hm_get_test("coast")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.