8

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?

6

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

http://badassjs.com/post/845509816/rendering-binary-shapefiles-with-javascript

both use javscript for rendering the shapefile

3

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/

2

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.)

Usage:

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.