sp_from_js_array: Function to create spatial objects from JavaScript arrays.

View source: R/sp_from_js_array.R

sp_from_js_arrayR Documentation

Function to create spatial objects from JavaScript arrays.

Description

JavaScript arrays take the form of: [[54.35221,-0.88518],[54.35237,-0.88544]].

Usage

sp_from_js_array(text, type = "points", projection = projection_wgs84())

Arguments

text

Character vector, file, or url containing a JavaScript array.

type

Spatial data type. Default is "points".

projection

Projection string.

Value

Spatial object.

Author(s)

Stuart K. Grange


skgrange/gissr documentation built on June 20, 2024, 12:02 a.m.