dt_publishSP2GeoServerWithStyle: publish a sp object to geoserver with wms stlying information

Description Usage Arguments Value

View source: R/utils.R

Description

publish a sp object to geoserver with wms stlying information

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
dt_publishSP2GeoServerWithStyle(
  spobj,
  layerprefix = "my_",
  styleprefix = "my_stl_",
  attrname,
  layerdisplyname = "",
  palettename = "Reds",
  colorreverseorder = FALSE,
  colornum = 5,
  classifier = "Jenks",
  bordercolor = "black",
  borderwidth = 1,
  bordervisible = TRUE,
  styletype = "single"
)

Arguments

spobj

a sp object. IMPORTANT: Each column of spobj MUST NOT have attribute name exceeding length (int)10, failed to do so may result in NO Style being generated on GeoServer

layerprefix

a prefix for layer name, will make the generated data layers in GeoServer more identifiable

styleprefix

a prefix for style name, will make the generated styles in GeoServer more identifiable

attrname

the attribute name that the style will be created for

palettename

check colors defined under each palette name at http://colorbrewer2.org acceptable color PaletteNames are: YlOrRd: 9 colors PRGn: 11 colors PuOr:11 colors RdGy: 11 colors Spectral: 11 colors Grays: 9 colors PuBuGn: 9 colors RdPu: 9 colors BuPu: 9 colors YlOrBr: 9 colors Greens: 9 colors BuGn: 9 colors Accents: 8 colors GnBu: 9 colors PuRd: 9 colors Purples: 9 colors RdYlGn: 11 colors Paired: 12 colors Blues: 9 colors RdBu: 11 colors Oranges: 9 colors RdYlBu: 11 colors PuBu: 9 colors OrRd: 9 colors Set3: 12 colors Set2: 8 colors Set1: 9 colors Reds: 9 colors PiYG: 11 colors Dark2: 8 colors YlGn: 9 colors BrBG: 11 colors YlGnBu: 9 colors Pastel2: 8 colors Pastel1: 9 colors

colorreverseorder

true or false(default), whether to reverse the color order defined in a palette

colornum

the number of colors to be classified. default 5. in range of 2-15

classifier

acceptable classifier function names are: Jenks(default), EqualInterval, Quantile, StandardDeviation

bordercolor

border color for polygon layers, default "black", can be white, gray or black.

borderwidth

border stroke width (integer value) for polygon layers. in range 1, 10, default 1

bordervisible

border visibility for polygon layers. TRUE/FALSE, default, TRUE

styletype

is the attribute for styling type, acceptable values are "single", "graduated" or "categorised", default value "single"

displayname

a readable display name for data layer

Value

a list contains single element to be included in geolayers


asiripanich/dtpluginr documentation built on Dec. 19, 2021, 5:36 a.m.