Skip to content

nuest/sfr

 
 

Repository files navigation

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

Contributing

  • Contributions of all sorts are most welcome, issues and pull requests are the preferred ways of sharing them.
  • When contributing pull requests, please adhere to the package style (in package code use = rather than <-; don't change indentation; tab stops of 4 spaces are preferred)
  • This project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Acknowledgment

This project is being realized with financial support from the

About

Simple features for R

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • R 74.9%
  • C++ 25.1%