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?

Aquarius_Girl
  • 403
  • 2
  • 6
  • 13

3 Answers3

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

Kurt
  • 7,087
  • 4
  • 33
  • 51
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...

urcm
  • 22,533
  • 4
  • 57
  • 109