es.polygon.r: Convert a elastic search polygon to sf object

Description Usage Arguments Value Examples

View source: R/ESconvertpolygon.R

Description

Convert a elastic search polygon to sf object

Usage

1
es.polygon.r(data_geo, var_id, merge_id, data_df)

Arguments

data_geo

geodataset extracted by elastic search database. Data geo must be a polygon or a multipolygon.

var_id

unique vector of geodataset

merge_id

name unique vector of geodataset

data_df

same geodataset in data_geo, but without geographical atributtes

Value

a sf object

Examples

1
2
3
4
5
6
 es.polygon.r(
  city,
  city$id,
  "id",
  city_no_geo
 )

GabrielSartori/elasticR documentation built on Jan. 12, 2020, 12:50 a.m.