R bindings to the liblwgeom library
This package provides a few functions that require
liblwgeom
, including st_geohash
, st_make_valid
,
st_minimum_bounding_circle
, st_split
,
st_transform_proj
(transform through proj, omitting
GDAL) and st_as_sfc.TWKB
(create sfc
from tiny
wkb),
as well as the geodetic (spherical/ellipsoidal) geometry
functions st_geod_area
, st_geod_azimuth
, st_geod_covers
,
st_geod_length
, and st_geod_segmentize
.
lwgeom
depends on sf, which has to be installed first.
According to r-spatial/sf#349, brew install postgis
installs a working liblwgeom
. In case of problems,
search for brew
in the sf issues
before opening a new one.
On ubuntu, install the following:
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libgdal-dev libgeos-dev libproj-dev libudunits2-dev liblwgeom-dev
The lwgeom
package on windows compiles the liblwgeom
sources,
and uses the external dependencies (GEOS, PROJ) from the gdal2
winlib.