[GIS] json to shapefile in javascript

javascriptjsonshapefileweb

I know, there are some libraries to convert .shp to .json even with javascript, but haven't found a way to convert .json back into .shp that could be implemented in web enviroment.
Do you know or have experience with something? Or what are my possibilities?

Thanks

Best Answer

It's not possible to do with pure JavaScript as it creates 3 binary files. Your best bet would be to setup a OGR web service that would take json in parameter and output a zipped SHP. Look at Ogre, it may help:

http://ogre.adc4gis.com/

EDIT:

I didn't test it myself, but it is indeed now possible to save shapefile from javascript:

https://github.com/mapbox/shp-write

Related Question