Science Inventory

lawn: An R client for the Turf JavaScript Library for Geospatial Analysis

Citation:

Chamberlain, S. AND Jeff Hollister. lawn: An R client for the Turf JavaScript Library for Geospatial Analysis. Journal of Open Source Software. Journal of Open Source Software, 2(11):194, (2017). https://doi.org/10.21105/joss.00194

Impact/Purpose:

Increasingly, geospatial analysts within the agency and among the general public are relying on open source software solutions. These solutions often rely on data shared from machine to machine using a data structure known as GeoJSON. Two important languages for analysing this type of data are R and javascript. The R package, lawn, provides access to the Turfjs javascript library for geospatial analysis of GeoJSON in R. The impact of this will be greater analysis options, done more quickly, without additional software costs and without the need for additional data transformations.

Description:

lawn is an R package to provide access to the geospatial analysis capabilities in the Turf javascript library. Turf expects data in GeoJSON format. Given that many datasets are now available natively in GeoJSON providing an easier method for conducting geospatial analyses on these datasets in R is desired. Additionally, many existing packages (e.g. sp and rgeos) do provide similar analysis capabilities; however, they require data be converted to sp objects and also have external dependencies (e.g. gdal and geos) that can be challenging to maintain on some systems (Roger S Bivand, Pebesma, and Gómez-Rubio 2013; Roger S. Bivand and Rundel 2016; GDAL Development Team 2015; Team 2016). To address these challenges and facilitate geospatial analysis of GeoJSON formatted data, we developed the lawn package.

Record Details:

Record Type:DOCUMENT( JOURNAL/ PEER REVIEWED JOURNAL)
Product Published Date:03/07/2017
Record Last Revised:04/09/2018
OMB Category:Other
Record ID: 336002