extract_zones: Get zones geometry from the database

Description Usage Arguments Details Value

View source: R/zone_leaflet.R

Description

Get zones geometry from the database

Usage

1
2
extract_zones(db, tbl_name = "ALLZONES", wkt_col = "WKTSURFACE",
  proj4string = "+proj=lcc +lat_1=43 +lat_2=45.5 +lat_0=41.75 +lon_0=-120.5 +x_0=399999.9999999999 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs")

Arguments

db

class src. The connection to the database.

tbl_name

chr. The name of the table in db containing the geometry Defaults to ALLZONES.

wkt_col

chr. The name of the column in tbl_name containing the WKT geometry. Defaults to WKTSURFACE

proj4string

chr. The proj4 string for the wkt_col coordinates. Defaults to Oregon Lambert.

Details

This function extracts the geography for the zones from the scenario database. It automatically reprojects the data to WGS84 using st_transform.

Value

a SpatialPolygonsDataFrame in WGS84 lat long coordinates.


pbsag/swimr documentation built on Dec. 12, 2020, 3:08 a.m.