kml: Output kml files.

Description Usage Arguments Value

View source: R/red.R

Description

Creates kml files for Google Maps as required by IUCN guidelines.

Usage

1
kml(spData, zone = NULL, filename, mapoption = "aoo", rad = 0.1)

Arguments

spData

One of three options: 1) matrix of longitude and latitude (two columns) of each occurrence record; 2) matrix of easting and northing (two columns, e.g. UTM) of each occurrence record in meters; 3) RasterLayer object of predicted distribution (0/1 values).

zone

UTM zone if data is in metric units.

filename

The name of file to save, should end with .kml.

mapoption

Type of representation, any of "points", "eoo" or "aoo".

rad

radius of circles in degrees if mapoption is "points". It can be the same value for all points or a vector with length equal to number of records in spData representing associated error. The default is about 10km (0.1 degrees) as per IUCN guidelines.

Value

A kml with polygon or circles around records.


red documentation built on Nov. 17, 2017, 4:53 a.m.

Related to kml in red...