ll2cart: Convert from Latitude/Longitude to Cartesian Coordinates

Description Usage Arguments Value See Also

Description

Convert coordinates given as latitude and longitude to three-dimensional coordinates on a sphere. This can be used to account for great-circle distances when fitting spatial models.

Usage

1
2
3
ll2cart(longlat, radius = 6371)

cart2ll(xyz, radius = 6371)

Arguments

longlat

a matrix or dataframe giving the longitudes (first column) and latitudes (second column) of a set of locations

radius

radius of the sphere in on which the Cartesian coodinates are defined. By default the approximate radius of the earth in kilometres.

xyz

a matrix or dataframe giving the cartesian coordinates (in order x, y, z) of a set of locations

Value

ll2cart: a three-column dataframe giving the x, y and z positions for each set of coordinates

cart2ll: a two-column dataframe giving the longitudes and latitudes for each set of coordinates

See Also

Other GIS: bufferMask, condSim, getArea, getPoints, insertRaster, makeVoronoiPolygons, safeMask, sortPolyData

Other GIS: bufferMask, condSim, getArea, getPoints, insertRaster, makeVoronoiPolygons, safeMask, sortPolyData


SEEG-Oxford/seegMBG documentation built on May 9, 2019, 11:08 a.m.