# sf

> Simple Features for R

Source: https://talira.ai/catalog/sf-h6g6z6yb
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [location / spatial analysis](https://talira.ai/categories/location/spatial-analysis), [languages / r](https://talira.ai/categories/languages/r)
- Licence: GPL-2.0-only OR MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Edzer Pebesma](https://talira.ai/orgs/edzer-pebesma.md)

sf is the R package for spatial vector data in the Simple Features standard. It keeps features as rows of a data.frame or tibble with a geometry list-column, supports all 17 simple feature types in every dimension, reads and writes data through GDAL (including spatial databases such as PostGIS via DBI), runs geometry operations through GEOS on projected coordinates and s2geometry on ellipsoidal ones, and transforms coordinate reference systems with PROJ. It replaces the older [sp](https://talira.ai/catalog/sp-eczq51qn.md) package, and stars, lwgeom and sfnetworks build on it.

## Links

- Website: https://r-spatial.github.io/sf/
- GitHub: https://github.com/r-spatial/sf
- Docs: https://r-spatial.github.io/sf/reference/

## Problems it solves

- read a shapefile or GeoPackage into R and work with it like a data frame
- do spatial joins and buffers on map data in R
- reproject my spatial data to another coordinate system in R

## Features

- simple features as data.frame or tibble rows with a geometry column
- all 17 simple feature types, XY to XYZM
- read and write spatial files and PostGIS through GDAL
- geometry operations with GEOS and s2geometry
- coordinate reference system transformation with PROJ

## Trust

Overall: 0.64 out of 1.
Signals: maintenance 1.00, adoption 0.63, momentum 0.33, community 0.85, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 102 commits in the last 90 days
- latest release v0.6-3 8.5 years ago
- 1.5k GitHub stars
- 133 contributors
- backed by Edzer Pebesma

## Related

- Successor of [sp](https://talira.ai/catalog/sp-eczq51qn.md)

## Alternatives

- [GDAL](https://talira.ai/catalog/gdal-qvftjrce.md): Translator library for raster and vector geospatial data formats
- [PostGIS](https://talira.ai/catalog/postgis-0jmwh77s.md): Spatial extension for PostgreSQL: geometry, geography and raster data in SQL
- [PROJ](https://talira.ai/catalog/proj-n3kzkb8v.md): Cartographic projections and coordinate transformations library
- [QGIS](https://talira.ai/catalog/qgis-k1ar4nfc.md): Free and open source geographic information system for Linux, Windows and macOS
- [terra](https://talira.ai/catalog/terra-krejtmtj.md): R package for spatial data analysis with vector and raster data, the successor of raster
- [sp](https://talira.ai/catalog/sp-eczq51qn.md): R classes and methods for spatial data

## Sources

[^1]: https://github.com/r-spatial/sf/blob/main/DESCRIPTION (checked 27 Nov 2026)
