# sp

> R classes and methods for spatial data

Source: https://talira.ai/catalog/sp-eczq51qn
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-or-later[^2][^3]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source.
- Free tier: yes[^2]
- Backed by: [Edzer Pebesma](https://talira.ai/orgs/edzer-pebesma.md)

An R package of classes and methods for spatial data: points, lines, polygons and grids, in 2D or 3D, with their attributes and coordinate reference systems, plus functions to plot them as maps, select by location, retrieve coordinates, subset and summarise. It's in maintenance mode and is being slowly deprecated in favour of the sf package, which it now uses for coordinate reference system checks and transformations (rgdal, rgeos and maptools are no longer used). By Edzer Pebesma and Roger Bivand; GPL 2 or later.

## Links

- Website: https://edzer.github.io/sp/
- GitHub: https://github.com/edzer/sp
- Docs: https://edzer.github.io/sp/reference/

## Problems it solves

- load and plot points and polygons with their attributes in R
- work with an older R spatial package that expects SpatialPolygonsDataFrame objects
- keep legacy R spatial analysis code running

## Features

- classes for spatial points, lines, polygons and grids with attributes
- coordinate reference systems
- plotting spatial data as maps
- spatial selection and subsetting

## Limitations

- In maintenance mode and being slowly deprecated in favour of the sf package[^1]

## Trust

Overall: 0.35 out of 1.
Signals: maintenance 0.47, adoption 0.42, momentum 0.09, community 0.46, backing 0.30, extensibility 0.00.

- last commit 49 days ago
- 3 commits in the last 90 days
- latest release 1.2-2accept 10.8 years ago
- 127 GitHub stars
- 13 contributors
- backed by Edzer Pebesma

## Alternatives

- [sf](https://talira.ai/catalog/sf-h6g6z6yb.md): Simple Features for R
- [terra](https://talira.ai/catalog/terra-krejtmtj.md): R package for spatial data analysis with vector and raster data, the successor of raster
- [raster](https://talira.ai/catalog/raster-q8twe083.md): R package for reading, writing, analysing and modelling raster spatial data, superseded by terra
- [fields (R)](https://talira.ai/catalog/fields-r-a2k20fy6.md): Tools for spatial data: splines, Kriging and spatial statistics in R

## Sources

[^1]: https://github.com/edzer/sp/blob/main/README.md (checked 27 Nov 2026)
[^2]: https://cran.r-project.org/package=sp (checked 27 Nov 2026)
[^3]: https://github.com/edzer/sp/blob/main/DESCRIPTION (checked 27 Nov 2026)
