zone: Determine UTM zone

Description Usage Arguments Value Examples

View source: R/zone.R

Description

The function accepts a vector layer (sf, sgc or sfg) and returns the EPSG code of the UTM zone according to the centroid of the bounding box.

Usage

1
zone(x)

Arguments

x

An sf, sgc or sfg object

Value

EPSG code (numeric) which can be passed to other functions such as st_transform

Examples

1
zone(cities[cities$name == "Boston MA", ])

michaeldorman/geobgu documentation built on Jan. 6, 2021, 3:57 p.m.