View source: R/conv_geojson_to_wkt.R
conv_geojson_to_wkt | R Documentation |
Convert an EAMENA GeoJSON file to a format adapted to the iconr shape analysis.
conv_geojson_to_wkt(
geojson.path = paste0(system.file(package = "iconr"),
"/extdata/Kfar_Hahoresh/Kfar_Hahoresh.crane_afg_nd_pl.geojson"),
dataDir = system.file("extdata", package = "iconr"),
out.dir = "_out",
verbose = TRUE
)
geojson.path |
The path of the GeoJSON file. By default 'caravanserail_polygon.geojson'. |
dataDir |
Path of the folder storing folders of all decorations. Each of these folders as a site name (eg, Ain Ghazal) and contains at least one shapefile (.shp and .dbf and .shx) and one image (.jpg or .tif or .png, etc.). The shapefile is named conventionally with the name of the site, a dot,the name of the decoration, "nd_pl" for nodes POLYGONS (eg, Ain Ghazal.stat_2_nd_pl.shp). The image is named conventionally with the name of the site, a dot, and the name of the decoration (eg, Ain Ghazal.stat_2.tif). |
out.dir |
Path of the output folder. By default "_out/" in the "dataDir" folder. |
verbose |
if TRUE (by default), verbose. |
Create the 'nodes.csv' file into the out folder, return the complete path of the 'nodes.csv' file.
Kfar_Hahoresh.crane_afg_nd_pl_polygon.wkt <- conv_geojson_to_wkt()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.