proj4web: Project for web function

Description Usage Arguments Details Examples

View source: R/proj4web.R

Description

This function allows you to reproject spatial data to WGS84, which is the projection required for webmaps such as leaflet.js

Usage

1
proj4web(dat, projection = "+proj=longlat +datum=WGS84")

Arguments

dat

Expects input of sp object: point, polygon, etc.

projection

Defaults to WGS84

Details

You can either use the default WGS84 projection or supply your own.

Examples

1
webprojected <- proj4web(anyprojection)

isaacbain/spatinz documentation built on May 23, 2019, 7:33 a.m.