Skip to contents

coordinates methods

Super class

charlatan::BareProvider -> CoordinateProvider

Methods

Inherited 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] 93.87401
z$lat()
#> [1] -88.04296
z$position()
#> [1] -157.27056  -42.50848
z$position(bbox = c(-120, 30, -110, 60))
#> [1] -114.0616   38.9268