bbox_ply: Create polygon from bounding box

View source: R/read.R

bbox_plyR Documentation

Create polygon from bounding box

Description

Utility function to create polygon from bounding box

Usage

bbox_ply(lon_min, lat_min, lon_max, lat_max)

Arguments

lon_min

longitude, minimum

lat_min

latitude, minimum

lon_max

longitude, maximum

lat_max

latitude, maximum

Value

Returns a spatial feature sf polygon.

Examples

# Florida Keys area
lon = -81.3; lat = 24.5; w = 10
bbox_ply(lon - w, lat - w, lon + w, lat + w)

marinebon/seascapeR documentation built on Nov. 13, 2024, 2:30 a.m.