ExportKMLRaster: ExportKMLRaster

Description Usage Arguments Details Value

Description

Create a Google Earth KML file from a RasterLayer or a set of KMLs from a RasterStack, or RasterBrick. Reliant on ExportKMLPolygon().

Usage

1
2
3
4
ExportKMLRaster(object, object_layer, outfile, kml_name,categorical,
  metadata, metadata_layer, color_pal, color_alpha, color_range, color_min,
  color_max, color_levels, color_increment, legend_levels, legend_values,
  log, signif_digits, outline, alt_mode, extrude, labelscale, create_kmz)

Arguments

object

a 'RasterLayer' or 'SpatialPolygonsDataFrame' object

object_layer

layer in object that is used for display

outfile

location of output KML file. Extensions (.kml or .kmz) will automatically determine file type.

kml_name

name of folder in KML file

categorical

logical, whether the data is categorical, default is false.

metadata

location of metadata .csv file for categorical data. Metadata file must contain "id" and "icon_color" columns.

metadata_layer

not required, column name in metadata used for legend labels instead of "id"

color_pal

color palette, can be a color ramp (i.e. c("white", "red") or a specific palette ("SAGA_pal[[1]]"). Atuomatically set as Saga_pal[i] for RasterStack and RasterBrick.

color_alpha

display and legend alpha value, default "cc"

color_range

range of object values to create color palette

color_min

min object values to create color palette

color_max

max object value to create color palette

color_levels

number of breaks in color palette, ignored if color_interval not equal to NA

color_increment

intervals for color palette breaks

legend_levels

number of breakpoints in legend, ignored if legend_interval not equal to NA

legend_values

vector of values in legend

log

logical of whether to log transform. Default is FALSE.

signif_digits

number of signifcant digits for polygon labels

outline

1 or 0, whether to draw an outline around each polygon

alt_mode

based on KML code: "absolute","clampedToGround", "relativeToGround" (see KML documentation for description). Default is "clampedToGround"

extrude

either 0 (default) or 1: 0 for no line, 1 extends a line from the point to the ground.

labelscale

adjusts the size of the Google Earth location point labels. Default is 0, which hides the labels. To show labels, change to a value between 0.7-1.

create_kmz

will always create a KMZ, default is FALSE.

Details

uses ExportKMLPolygon() and CreateColorPaletteLegend()

Value

KML or KMZ of polygons with an associated legend


Blakemassey/gisr documentation built on Aug. 30, 2020, 12:14 a.m.