Skip to contents

coordinates methods

Methods


Method lon()

a latitude value

Usage

CoordinateProvider$lon()


Method lat()

a longitude value

Usage

CoordinateProvider$lat()


Method position()

a position, of form [longitude,latitude]

Usage

CoordinateProvider$position(bbox = NULL)

Arguments

bbox

optionally, specify a bounding box for the position to be in, of the form [west,south,east,north] - checks that the bbox has valid values for lat and long


Method clone()

The objects of this class are cloneable with this method.

Usage

CoordinateProvider$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

z <- CoordinateProvider$new()
z$lon()
#> [1] 9.377764
z$lat()
#> [1] 0.02595314
z$position()
#> [1] -175.51066  -78.34537
z$position(bbox = c(-120, 30, -110, 60))
#> [1] -117.83768   59.13344