boundaries_coords.shape: Retrieve a list of boundaries' spacial coordinates(lat/long...

Description Usage Arguments Value Examples

Description

Retrieve a list of boundaries with their spacial coordinates(lat/long and mercator) and a computed haversine distance in miles from the map center. Boundaries are defined in a shapefile dataframe(see method: shape_boundaries) as a list of vertices coordinates. The boundaries spacial coordinates is the center of gravity of its vertices.

Usage

1
boundaries_coords.shape(shape_boundaries, map_center = NULL)

Arguments

shape_boundaries

List of vertices coordinates as dataframe. Each boundaries is defined as a set of vertices. The value is given using shape_boundaries method

map_center

Spacial coordinates of a map center. The haversine distance in miles is computed if map_center is defined.

Value

list of spacial coordinates(lat/long and mercator) and a distance as data.frame

Examples

1
2
3
shape_boundaries<-shape_boundaries(shape_boundaries_dir, shape_boundaries_filename,boundary_identifier)
map_center = data.frame(long = c(-94.823686), lat = c(39.121296) )
boundaries_coords<-boundaries_coords.shape(shape_boundaries, map_center)

mohtad/mapR documentation built on May 23, 2019, 6:01 a.m.