CoordinateProvider: CoordinateProvider

CoordinateProviderR Documentation

CoordinateProvider

Description

coordinates methods

Methods

Public 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()
z$lat()
z$position()
z$position(bbox = c(-120, 30, -110, 60))

charlatan documentation built on Sept. 13, 2023, 5:08 p.m.