convert_to_sf: Convert to SF

View source: R/convert_to_sf.R

convert_to_sfR Documentation

Convert to SF

Description

Convert to SF

Usage

convert_to_sf(
  df,
  crs_source = 25833,
  crs_target = 4326,
  col_coord_x = "Rechtswert_UTM_33_N",
  col_cood_y = "Hochwert_UTM_33_N"
)

Arguments

df

data frame or tibble with spatial data

crs_source

origingal CRS (default: 25833)

crs_target

target CRS (default: 4326)

col_coord_x

column name of latitude (default: "Rechtswert_UTM_33_N")

col_cood_y

column name of longitude (default: "Hochwert_UTM_33_N")

Value

data frame or tibble converted to sf

Examples

gwl_master <- jsonlite::fromJSON("https://kwb-r.github.io/wasserportal/stations_gwl_master.json")
convert_to_sf(gwl_master)


KWB-R/kwb.geosalz documentation built on March 28, 2024, 9:05 p.m.