sgo_wgs84_en: WGS84 to Easting Northing (Pseudo - Mercator)

View source: R/sgo_wgs84.R

sgo_wgs84_enR Documentation

WGS84 to Easting Northing (Pseudo - Mercator)

Description

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

Usage

sgo_wgs84_en(x, to = 3857)

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.

Value

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

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

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

sgo documentation built on Sept. 23, 2022, 5:08 p.m.