sp_create_envelope: Function to create a rectangular polygon envelope, usually...

View source: R/sp_create_envelope.R

sp_create_envelopeR Documentation

Function to create a rectangular polygon envelope, usually used for filtering.

Description

Function to create a rectangular polygon envelope, usually used for filtering.

Usage

sp_create_envelope(envelope, projection = projection_wgs84())

Arguments

envelope

A vector with the length of 4 containing the extent of the envelope to be used as a bounding box. The order is: xmin, xmax, ymin, ymax. Watch out when using latitude and longitude, the order is longitude, longitude, then latitude, latitude.

projection

A proj4 string. Default is the WGS84 string.

Value

Spatial polygon.

Author(s)

Stuart K. Grange


skgrange/gissr documentation built on Feb. 24, 2024, 2:55 p.m.