# r-spatial/sf

Simple Features for R

Repository: https://github.com/r-spatial/sf
Canonical: https://ross.abutalabs.com/products/sf
Homepage: https://r-spatial.github.io/sf/
Language: R
License: NOASSERTION
License Family: other
Topics: r, spatial, gdal, geos, proj, r-package, rstats
Last push: 2026-08-21T06:31:25+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 8, longevity 100
- inputs: {"age_days": 3953, "days_push": 12, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1442, forks 302 (observed 2026-08-28T04:04:44.722137+00:00)

## What it is
sf is an R package providing Simple Features access for vector geospatial data, representing geometries as list-columns in data frames. It interfaces with GEOS, GDAL, and PROJ for geometric operations, file/database I/O, and coordinate reference system transformations.

## Use cases
- read and write shapefiles and geospatial formats in R
- perform spatial joins and geometric operations on vector data
- reproject coordinates between coordinate reference systems
- work with PostGIS spatial databases from R
- analyze and plot spatial polygons and points in data frames
- convert between WKB/WKT and R spatial objects

## When to choose
- you need vector (simple features) spatial data handling in R with tidyverse-style data frames
- you want a modern replacement for the sp package with GDAL/GEOS/PROJ bindings
- you need fast I/O to many geospatial file formats or spatial databases

## When to avoid
- you primarily work with raster data or data cubes (use the stars package instead)
- you need geospatial capabilities outside the R ecosystem
- you need network analysis on spatial graphs (consider sfnetworks)

## Facets
- artifact type: library
- maturity: stable
- function: geospatial, parser, serialization, data-science
- domain: data-science
- platform: cross-platform, windows
- tags: r-package, simple-features, gdal, geos, proj, postgis, vector-data, coordinate-reference-systems, geospatial, maps, r, linux, macos

## Member repositories
- r-spatial/sf (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:44.722137+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:25.208248+00:00, confidence not recorded.
  - readme: https://github.com/r-spatial/sf (fetched 2026-08-28T04:04:44.722137+00:00, sha fed5bcadecd8)
  - homepage: https://r-spatial.github.io/sf/ (fetched 2026-08-29T11:46:32.882694+00:00, sha b7b99ea20891)
- Data as of 2026-08-30T08:39:29.467469+00:00.
