Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need my Javascript browser application to convert/export KML documents into ESRI shapefiles. Is there any JS library that can do it? I tried googling, but no answers so far (at least, not in Javascript).

share|improve this question
Why do you need to this? – Mapperz Feb 12 '13 at 15:11
up vote 4 down vote accepted

js2shapefile looks like it should be able to do this, although it may require you to write or use a separate KML parser. See this code for example usage with Google Maps.

share|improve this answer
Thanks, this will definitely be useful! Any other option? – csparpa Feb 12 '13 at 14:35
According to me No. @blah js2shapefile is the perfect fits for me thanks : ) – Sunil Feb 13 '13 at 5:20

You can the this link too. Here CSV files are being converted to either KML or Shapefile using js2shapefile.

You can check the source code how it works. This is a working example.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.