liblwgeom geodetic functions for length, area, segmentizing, covers
st_geod_area(x)st_geod_length(x)st_geod_segmentize(x, max_seg_length)st_geod_covers(x, y, sparse =TRUE)st_geod_covered_by(x, y, sparse =TRUE)st_geod_distance(x, y, tolerance =0, sparse =FALSE)
Arguments
x: object of class sf, sfc or sfg
max_seg_length: segment length in degree, radians, or as a length unit (e.g., m)
y: object of class sf, sfc or sfg
sparse: logical; if TRUE, return a sparse matrix (object of class sgbp), otherwise, return a dense logical matrix.
tolerance: double or length units value: if positive, the first distance less than tolerance is returned, rather than the true distance
Details
st_area will give an error message when the area spans the equator and lwgeom is linked to a proj.4 version older than 4.9.0 (see lwgeom_extSoftVersion )
longitude coordinates returned are rescaled to [-180,180)
Note
this function should is used by st_distance , do not use it directly