latlon2epsg: Transform Spatial Data to a Local Metric CRS

View source: R/latlon2epsg.R

latlon2epsgR Documentation

Transform Spatial Data to a Local Metric CRS

Description

Selects a UTM zone from the geographic centroid, or a polar stereographic CRS outside UTM's latitude range.

Usage

latlon2epsg(sf_obj)

Arguments

sf_obj

An 'sf' or 'sfc' object with a defined CRS.

Value

The input transformed to EPSG 326xx/327xx, EPSG 3413, or EPSG 3031.

See Also

[sf::st_transform()]

Examples

shapes <- get_shapes_sf(for_rail_gtfs)$shapes
metric_shapes <- latlon2epsg(shapes)


GTFSwizard documentation built on Aug. 21, 2026, 5:16 p.m.