Load .SHP File

Topics: General
Jul 10, 2010 at 4:09 PM


How can I load .shp file as a layer of map ? Can I do it ?



Jul 10, 2010 at 4:45 PM
Edited Jul 10, 2010 at 4:47 PM

whew, sorry, i thought thats you again ;]

-> check CloudsDemo

Jul 10, 2010 at 7:18 PM

I loaded the web-map successfully But some of map-areas is not complete. I need to load my local map to correct it.



Jul 10, 2010 at 7:25 PM


Jul 10, 2010 at 8:22 PM

source? ;}

Jul 12, 2010 at 12:59 PM
But that's loading a PNG file not a ESRI ShapeFile.
Jul 12, 2010 at 1:05 PM
Edited Jul 12, 2010 at 1:06 PM

mm, i guess we just need volunteers to implement shape rendering ;}

p.s. http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf 

Jul 12, 2010 at 1:24 PM
Actually I am interested in helping out with GMaps. However I have not experience in using CodePlex so I would'nt even know how to start. I have installed VisualHG and downloaded the sources but from there I have no clue. Should my local version sync with the server or what?
Jul 12, 2010 at 3:17 PM

create fork, make changes, create feature, commit, and push to your fork.

Dec 19, 2010 at 11:19 AM

You can use Catfood.shapefile, I have used and read all type of shapefile, it work fine.

see:  http://shapefile.codeplex.com/

Jun 19, 2011 at 4:18 PM

I want to create some themes based on Shape files (eg: the more people live in a country the darker the country). As I try to avoid reinventing the wheel, someone has an example in this direction? Or how to read/display shapefiles fast?

Thanks in advance,


Jun 20, 2011 at 11:03 PM




This has build in thematic mapping features for shape files.

Jul 29, 2011 at 9:44 AM
Edited Jul 29, 2011 at 10:02 AM

There is a simple solution. Download Geoserver, put you own maps in it and then use GMap using it as the server.

I don't know why but the vertical tile order was reversed compared to Google but I fixed it and it worked well.


Mar 10, 2012 at 3:24 PM
Edited Mar 10, 2012 at 3:27 PM


Before the map provider existed I used this code to access a local geoserver instance rendering my shapefiles

I had to reverse the vertical tile order for this to work.

case MapType.LocalMap:           


                char letter = "abc"[GetServerNum(pos, 3)];               

 //Console.WriteLine((int)(Math.Pow(2, zoom)) - pos.Y);
                int value = (int)(Math.Pow(2, zoom)) - pos.Y-1;

                return string.Format("http://localhost:8080/geoserver/gwc/service/tms/1.0.0/test2@EPSG%3A900913@png/{0}/{1}/{2}.png", zoom, pos.X, value);          



Added as someone just e-mailed me for it :)


Mar 11, 2012 at 6:30 AM

Thank you so much. Worked for days, and got no solution for the tile server problem.