Learn R Programming

sgo (version 0.9.2)

sgo_wgs84_en: WGS84 to Easting Northing (Pseudo - Mercator)

Description

Converts WGS84 coordinates to Easting/Northing (Pseudo-Mercator)

Usage

sgo_wgs84_en(x, to = 3857)

Value

An object of class sgo_points whose coordinates are defined as Easting/Northing.

Arguments

x

A sgo_points object describing a set of points in the geodetic coordinate system EPSG=4326 or 4979.

to

Numeric. Sets the epsg code of the destination Geodetic Coordinate System. 3857 (WGS84) by default. And currently doesn't support any other.

Details

This routine also accepts source data expressed in ETRS89 coordinates (EPSG=4258 or 4937) as it is considered the difference between those two GCS is far less than the accuracy available when working with Pseudo-Mercator coordinates.

The results can be used in maps where Pseudo-Mercator coordinates are needed. Usually, those include Google, Bing, OpenStreetMap and several other webmap applications.

References

IOGP Publication 373-7-2 - Geomatics Guidance Note number 7, part 2 (October 2020). https://epsg.org/guidance-notes.html

See Also

sgo_points, sgo_en_wgs84.

Examples

Run this code
p <- sgo_points(list(-3.9369, 56.1165), epsg=4326)
res <- sgo_wgs84_en(p)

Run the code above in your browser using DataLab