sp_point: create an spatialpointobject from 1 points

View source: R/karim.R

sp_pointR Documentation

create an spatialpointobject from 1 points

Description

create an spatial point object from 1 point and optionally export it as a shapefile

Usage

sp_point(
  lon,
  lat,
  ID = "point",
  proj4 = "+proj=longlat +datum=WGS84 +no_defs",
  export = FALSE,
  runDir = runDir
)

Arguments

lon

lon

lat

lat

ID

name of point

proj4

projection

export

write shafefile default = F

runDir

character runtime folder

Examples

## Not run: 
## creating sp spatial point object
point <- sp_point(8.770362,50.815240,ID="Faculty of Geographie Marburg")

## plot it
raster::plot(point)

## End(Not run)

uavRmp documentation built on Feb. 16, 2023, 7:03 p.m.