/lwgeom

bindings to the liblwgeom library

Primary LanguageC

lwgeom

R bindings to the liblwgeom library

Build Status AppVeyor Build Status Coverage Status CRAN cran checks Downloads

This package provides functions that use liblwgeom, including st_geohash, st_make_valid, st_minimum_bounding_circle, st_split, st_subdivide, 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_length, st_geod_distance, st_geod_covers, st_geod_azimuth, and st_geod_segmentize.

Installing

lwgeom depends on sf, which has to be installed first. This package uses the liblwgeom library, and compiles a shipped (and modified) version of liblwgeom. It links to the GEOS and PROJ libraries.

To install from source, it should be enough to have installed sf from source; the resources for this package are being reused.

lwgeom source now included

Previous to version 0.1-6, lwgeom would also try to link the system library liblwgeom; from 0.1-6 on only the shipped version is used.