Plot points on a Shapefile like this: https://github.com/gka/pyshpgeocode and then convert it to HTML and display it on a browser?

Is this practical method to display the map on a browser?
Any cons of it?

Is there any other way of displaying a Shapefile on a browser?


take a look at: http://s3.amazonaws.com/shapefile-js/simple.html and


both use javscript for rendering the shapefile


You can convert your shapefile to GeoJSON and use tools like leaflet to Display it in an HTML page.

To convert a shapefile to GeoJSON you can use Quantum GIS (It's a great GIS tool). and also there is online convertion services: http://ogre.adc4gis.com/ or http://www.mapshaper.org/


checkout shp2Mapstraction.py here which makes your point data to html with desired map provider.(in this trunk you can find more files for some purposes.)


shp2Mapstraction.py worker.shp workers.html Yahoo

and here there is some information about it.

i hope it helps you...

  • Can that work "offline"? – Aquarius_Girl Jul 16 '12 at 9:39
  • Yes. It creates offline html file but provider have to be online.... – Aragon Jul 16 '12 at 9:50
  • I mean to ask that will I be able to see the map when the internet is not working? – Aquarius_Girl Jul 16 '12 at 10:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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