Learn R Programming

sf (version 1.0-18)

Simple Features for R

Description

Support for simple features, a standardized way to encode spatial vector data. Binds to 'GDAL' for reading and writing data, to 'GEOS' for geometrical operations, and to 'PROJ' for projection conversions and datum transformations. Uses by default the 's2' package for spherical geometry operations on ellipsoidal (long/lat) coordinates.

Copy Link

Version

Install

install.packages('sf')

Monthly Downloads

331,035

Version

1.0-18

License

GPL-2 | MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

October 11th, 2024

Functions in sf (1.0-18)

Ops

Arithmetic operators for simple feature geometries
st_nearest_points

get nearest points between pairs of geometries
db_drivers

Drivers for which update should be TRUE by default
prefix_map

Map prefix to driver
st_as_grob

Convert sf* object to a grob
aggregate.sf

aggregate an sf object
.stop_geos

Internal functions
st_write

Write simple features object to file or database
geos_combine

Combine or union feature geometries
gdal_addo

Add or remove overviews to/from a raster image
summary.sfc

Summarize simple feature column
geos_binary_ops

Geometric operations on pairs of simple feature geometry sets
st_is

test equality between the geometry type and a class or set of classes
geos_measures

Compute geometric measurements
plot

plot sf object
sf-defunct

Deprecated functions in sf
dbDataType,PostgreSQLConnection,sf-method

Determine database type for R vector
st_agr

get or set relation_to_geometry attribute of an sf object
st_as_sf

Convert foreign object to an sf object
st_m_range

Return 'm' range of a simple feature or simple feature set
st_as_binary

Convert sfc object to an WKB object
gdal_utils

Native interface to gdal utils
reexports

Objects exported from other packages
st_break_antimeridian

Break antimeridian for plotting not centred on Greenwich
st_nearest_feature

get index of nearest feature
st_bbox

Return bounding of a simple feature or simple feature set
geos_unary

Geometric unary operations on simple feature geometry sets
geos_binary_pred

Geometric binary predicates on pairs of simple feature geometry sets
st_coordinates

retrieve coordinates in matrix form
dbWriteTable,PostgreSQLConnection,character,sf-method

Write sf object to Database
st_collection_extract

Given an object with geometries of type GEOMETRY or GEOMETRYCOLLECTION, return an object consisting only of elements of the specified type.
sf-package

sf: Simple Features for R
s2

functions for spherical geometry, using s2 package
is_driver_can

Check if a driver can perform an action
st_read

Read simple features or layers from file or database
st_line_project_point

Project point on linestring, interpolate along a linestring
st_is_longlat

Assert whether simple feature coordinates are longlat degrees
tibble

Summarize simple feature type for tibble
tidyverse

Tidyverse methods for sf objects
st_jitter

jitter geometries
st_line_sample

Sample points on a linear geometry
transform.sf

transform method for sf objects
st_z_range

Return 'z' range of a simple feature or simple feature set
is_geometry_column

Check if the columns could be of a coercable type for sf
sf_project

directly transform a set of coordinates
bind

Bind rows (features) of sf objects
st_zm

Drop or add Z and/or M dimensions from feature geometries
st_make_grid

Create a regular tesselation over the bounding box of an sf or sfc object
st_cast_sfc_default

Coerce geometry to MULTI* geometry
st_as_sfc

Convert foreign geometry object to an sfc object
st_relate

Compute DE9-IM relation between pairs of geometries, or match it to a given pattern
st_is_full

predicate whether a geometry is equal to a POLYGON FULL
extension_map

Map extension to driver
st_crop

crop an sf object to a specific rectangle
rawToHex

Convert raw vector(s) into hexadecimal character string(s)
valid

Check validity or make an invalid geometry valid
st_drivers

Get GDAL drivers
proj_tools

Manage PROJ settings
sfc

Create simple feature geometry list column
st_geometry

Get, set, replace or rename geometry from an sf object
st_as_text

Return Well-known Text representation of simple feature geometry or coordinate reference system
st_normalize

Normalize simple features
gdal

functions to interact with gdal not meant to be called directly by users (but e.g. by stars::read_stars)
geos_query

Dimension, simplicity, validity or is_empty queries on simple feature geometries
as

Methods to coerce simple features to Spatial* and Spatial*DataFrame objects
st

Create simple feature from a numeric vector, matrix or list
st_cast

Cast geometry to another type: either simplify, or cast explicitly
interpolate_aw

Areal-weighted interpolation of polygon data
st_precision

Get precision
st_transform

Transform or convert coordinates of simple feature
sgbp

Methods for dealing with sparse geometry binary predicate lists
st_join

spatial join, spatial filter
st_crs

Retrieve coordinate reference system from object
st_layers

Return properties of layers in a datasource
st_viewport

Create viewport from sf, sfc or sfg object
is_driver_available

Check if driver is available
stars

functions only exported to be used internally by stars
st_geometry_type

Return geometry type of an object
sf

Create sf object
st_sample

sample points on or in (sets of) spatial features
nc

North Carolina SIDS data
merge.sf

merge method for sf and data.frame object
sf_extSoftVersion

Provide the external dependencies versions of the libraries linked to sf
st_graticule

Compute graticules and their parameters
vctrs

vctrs methods for sf objects
st_shift_longitude

Shift or re-center geographical coordinates for a Pacific view