Learn R Programming

charlatan (version 0.6.1)

CoordinateProvider: CoordinateProvider

Description

coordinates methods

Arguments

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

Run this code
z <- CoordinateProvider$new()
z$lon()
z$lat()
z$position()
z$position(bbox = c(-120, 30, -110, 60))

Run the code above in your browser using DataLab