rmapshaper icon indicating copy to clipboard operation
rmapshaper copied to clipboard

add htmlwidget version

Open timelyportfolio opened this issue 8 years ago • 3 comments

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.

timelyportfolio avatar Aug 08 '15 19:08 timelyportfolio

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.

ateucher avatar Aug 18 '15 22:08 ateucher

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?

timelyportfolio avatar Sep 28 '15 21:09 timelyportfolio

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.

ateucher avatar Sep 28 '15 23:09 ateucher