Is it possible to simply use rmapshaper to convert between json types e.g.
mapshaper -i input.geojson -o output.topojson format=topojson
I see in utils.R and sys_mapshaper(), that the cmd_args object created would not currently allow this option
cmd_args <- c(sys_mem, shQuote(in_data_file), command, "-o", shQuote(out_data_file))
would it be simple enough to allow a format parameter somewhere?
# some earlier format parameter wrangling if argument supplied .. resulting in something like this
cmd_args <- c(sys_mem, shQuote(in_data_file), command, "-o", shQuote(out_data_file), 'format=topojson')
if I run system2(ms_path, cmd_args), with command="", then i get a file type convert occurring .. so it seems to work
Is it possible to simply use rmapshaper to convert between json types e.g.
I see in
utils.Randsys_mapshaper(), that thecmd_argsobject created would not currently allow this optionwould it be simple enough to allow a format parameter somewhere?
if I run
system2(ms_path, cmd_args), withcommand="", then i get a file type convert occurring .. so it seems to work