Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question

3 Answers 3

up vote 4 down vote accepted

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

share|improve this answer
    
thanks, but does it work "offline"? It loads the binary data using an *AJAX request* –  TheIndependentAquarius Jul 16 '12 at 9:39
    
This does work Online and Offline in IE - blog post mapperz.blogspot.com/2010/07/esri-shapefile-html5-viewer.html –  Mapperz Jul 16 '12 at 13:14

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/

share|improve this answer

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

share|improve this answer
    
Can that work "offline"? –  TheIndependentAquarius 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? –  TheIndependentAquarius Jul 16 '12 at 10:07

Your Answer

 
discard

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.