decode_polygons: Retrieve Polygons class objects derived from 4, 5 or 6 digit...

Description Usage Arguments Value

View source: R/fishbox.R

Description

Retrieve Polygons class objects derived from 4, 5 or 6 digit codes used to define One Degree, Quarter Degree or Ten Minute Squares (ODS, QDS, TMS).

Usage

1
2
decode_polygons(x = c(426916, 42692, 4269, 387066, 38701, 3870),
  crs = sp::CRS("+proj=longlat +datum=WGS84"), asDataFrame = TRUE, ...)

Arguments

x

one or more numeric or character 4, 5 or 6 digit codes

crs

a CRS class coordinate reference system object

asDataFrame

logical, if TRUE return a SpatialPolygonsDataFrame

...

further arguments for decode_id

Value

sp::SpatialPolygons or sp::SpatialPolygonsDataFrame class object


btupper/fishboxes documentation built on Aug. 16, 2020, 5:13 p.m.