Skip to content

output format option #128

@Shaunson26

Description

@Shaunson26

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions