Description Usage Arguments Value See Also Examples
Find the boundaries of a KML file.
1 | kml_bounds(x, ns = "d1", verbose = TRUE)
|
x |
A KML source. See kml_read. |
ns |
The name of the namespace to extract from: defaults to |
verbose |
Whether to report invalid coordinates and/or altitudes below
sea level; defaults to |
A named numeric vector of four elements corresponding to the left, bottom, right and top values of the bounding box; 'left' and 'right' are the minimal and maximal longitudes; 'bottom' and 'top' are the minimal and maximal latitudes.
kml_coords
1 2 3 4 | # demo data: U.S. Civil War map
# see ?states for details
f <- system.file("extdata", "states.kml.zip", package = "tidykml")
kml_bounds(f)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.