terrainr_bounding_box: Construct a terrainr_bounding_box object

Description Usage Arguments Value

View source: R/classes.R


In order to simplify code, most terrainr functions expect a set S4 class representation of coordinate pairs and bounding boxes. If the provided data is not in the expected S4 format, these functions are used to cast the data into the target class.


terrainr_bounding_box(bl, tr, coord_units = "degrees")


bl, tr

The bottom left (bl) and top right (tr) corners of the bounding box, either as a [terrainr_coordinate_pair] object or a coordinate pair. If the coordinate pair is not named, it is assumed to be in (lat, lng) format; if it is named, the function will attempt to properly identify coordinates.


Arguments passed to [terrainr_coordinate_pair]. If bl and tr are already [terrainr_coordinate_pair] objects, these arguments are not used.


An object of class [terrainr_bounding_box].

terrainr documentation built on Feb. 23, 2021, 9:06 a.m.