Learn R Programming

spsurvey (version 4.0.0)

marinus: Marinus Cylindrical Map Projection

Description

This function converts x,y coordinates measured in units of latitude and longitude, i.e., geographic coordinates measured in decimal degrees, to coordinates in the equidistant, cylindric map projection measured in units of kilometers. The projection center is defined as the midpoint in latitude- longitude space. The map projection is here named after Marinus of Tyre (see J.P. Snyder. USGS Prof Paper 1395, p. 90).

Usage

marinus(lat, lon)

Arguments

lat

Vector of latitudes.

lon

Vector of longitudes.

Value

Matrix with column names "x" and "y" containing the x and y coordinates in the equidistant, cylindric map projection measured in units of kilometers.

Examples

Run this code
# NOT RUN {
lat <- 45 + runif(100, -5, 5)
lon <- 120 + runif(100, -10, 10)
marinus(lat, lon)

# }

Run the code above in your browser using DataLab