/sfr

Simple features for R

Primary LanguageROtherNOASSERTION

Simple Features for R

Build Status AppVeyor Build Status Coverage Status License CRAN Downloads

A package that provides simple features access for R.

Install with:

library(devtools)
install_github("edzer/sfr")

This currently works directly under windows with R 3.3.0 or newer when Rtools is installed. For Mac, see here. For Unix-alikes, a recent C++ compiler (c++11), GDAL (>= 2.0.0), and GEOS (>= 3.3.0) are needed.

For example, to install these libraries on Ubuntu, either:

  • add ubuntugis-unstable to the package repositories (e.g. with sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable and then sudo apt-get install libgdal-dev libgeos++-dev), or
  • install from source; see the travis config file for hints

See also:

What it does

The sf package:

  • represents natively in R all 17 simple feature types for all dimensions (XY, XYZ, XYM, XYZM)
  • uses S3 classes: simple features are data.frame objects (or similar) that have a geometry list-column
  • interfaces to GEOS to support the DE9-IM
  • interfaces to GDAL with driver dependent dataset or layer creation options, Date and DateTime (POSIXct) columns, and coordinate reference system transformations through PROJ.4
  • provides fast I/O with GDAL and GEOS using well-known-binary written in C++/Rcpp
  • directly reads from and writes to spatial databases such as PostGIS using DBI

Acknowledgment

This project is being realized with financial support from the