kml: Output kml files.

View source: R/main.R

kmlR Documentation

Output kml files.

Description

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

Usage

kml(spData, zone = NULL, filename, mapoption = "aoo", smooth = 0, 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".

smooth

Smooths the kml lines as per IUCN guidelines. Higher values represent smoother polygons.

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 Sept. 9, 2023, 1:07 a.m.

Related to kml in red...