Bindings to Selected 'liblwgeom' Functions for Simple Features

Access to selected functions found in 'liblwgeom' <>, the light-weight geometry library used by 'PostGIS' <>.


version 0.1-5

  • check for user interrupts on st_geod_distance, #29 by Dan Baston

  • add st_astext for fast WKT writing, #25 by Etienne Racine

  • add st_is_polygon_cw, #21 by Andy Teucher @ateucher; add Andy Teucher to contributors

  • add st_perimeter and st_perimeter_2d functions to compute the length measurement of the boundary of a surface.

  • allow st_transform_proj to take two proj4 strings as crs, as c(input_p4s, output_p4s), ignoring the CRS of x

version 0.1-4

  • tries to fix the CRAN error for r-release-osx (datum files missing in sf; removed test)

version 0.1-3

  • add st_geod_covered_by binary geometry predicate

version 0.1-2

  • try to fix OSX compile on CRAN, tuning

version 0.1-1

  • add st_length

  • attempt to fix Solaris and OSX

  • report proj.4 and GEOS versions on startup, and on lwgeom_extSoftwareVersions; #10

  • add minimum bounding circle, by @rundel; #7

  • add st_subdivide, see

version 0.1-0

  • first CRAN submission

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.2-7 by Edzer Pebesma, 2 months ago

Report a bug at

Browse source code at

Authors: Edzer Pebesma [aut, cre] , Colin Rundel [ctb] , Andy Teucher [ctb] , liblwgeom developers [cph]

Documentation:   PDF Manual  

Task views: Analysis of Spatial Data

GPL-2 license

Imports Rcpp, units, sf

Suggests covr, sp, geosphere, testthat

Linking to Rcpp, sf

System requirements: GEOS (>= 3.5.0), PROJ (>= 4.8.0)

Imported by APAtree, abstr, conleyreg, fsr, giscoR, gtfs2gps, himach, moveVis, nngeo, oceanis, populR, sfnetworks, stars, stplanr, sugarbag, tilemaps, tmaptools, wdpar.

Suggested by EmissV, RCzechia, RWmisc, SpatialPosition, VancouvR, bcmaps, cancensus, cartography, dsims, eixport, ggspatial, gtfsrouter, gtfstools, hereR, jpmesh, mapsf, mapview, naturaList, nhdR, nhdplusTools, od, osrm, potential, raytracing, rbenvo, redist, remap, sf, sftrack, smoothr, spsurvey, tanaka, vein, zonebuilder.

See at CRAN