rmapshaper
rmapshaper copied to clipboard
add htmlwidget version
I discovered your project as I planned this week's htmlwidget
of the week to wrap the mapshaper
web ui. It appears you are trying to provide an interface to the command-line, but I thought the combination of both your planned interface and an htmlwidget
would provide a really powerful tool. I'll start as a standalone htmlwidget
with the idea that it might get absorbed here. Thanks so much for starting on this. I look forward to hearing from you.
Sorry for the delay here - I've been on holidays :)
This is fantastic! The ability to use the gui right inside R is so helpful. It would be great to get the result returned as an R object, which looks like it is on your todo list.
You're right, I am trying to wrap the command line tool - right now the simplify
function is working relatively well with system
calls to the node module, but there are two problems with that. 1: A user has to have node and the mapshaper
module installed, and 2: There is a lot of disk i/o involved. So I'm experimenting with using V8
, but so far haven't made it very far (due to lack of time and limited javascript skills).
I think it would be great to incorporate the htmlwidget
into this package as you're right - the ability to use the gui to experiment (for example to get optimal simplification parameters), and then script it with the simplify
function would be fantastic.
As of now, I am planning to try to merge in the htmlwidget
piece once test-v8
stabilizes enough to get merged into master
. Does that work?
That's fantastic, thanks! I think it's getting close to getting the core stabilized and I will merge into master soon and start to flesh out the functions.