fdzul / lwgeom

bindings to the liblwgeom library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lwgeom

R bindings to the liblwgeom library

Build Status AppVeyor Build Status Coverage Status CRAN

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.

Installing

lwgeom depends on sf, which has to be installed first.

MacOS

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.

Linux

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

Windows

The lwgeom package on windows compiles the liblwgeom sources, and uses the external dependencies (GEOS, PROJ) from the gdal2 winlib.

About

bindings to the liblwgeom library

License:Other


Languages

Language:C 96.4%Language:C++ 2.5%Language:R 0.9%Language:M4 0.1%Language:Shell 0.0%