This project has moved and is read-only. For the latest updates, please go here.

Creating a layer to show points of interest based on lat / long

Topics: SharpMap Project, SharpMap v2.0, WinForms Controls
Oct 29, 2008 at 9:08 PM
I am trying to plot icons on a map to show information.  My vectorLayer is loaded from a shape file with a coordinate system like:
 _CoordinateSystem = {GEOGCS["GCS_WGS_1984", DATUM["D_WGS_1984", SPHEROID["WGS_1984", 6378137, 298.257223563]], PRIMEM["Greenwich", 0], UNIT["Degree", 0.0174532925199433]]}

I then have a created a layer which extends the abstract layer class. It has a collection of objects that have an icon, and a lat / long value.  When the render function is called, i had originally been trying map.WorldToImage();  to get the actualy xy my points needed to be rendered at, however this put them in very wrong locations.  I then was trying to make sure that both the shapefile and the icons were using the same coordinate system, and this seemed to get me closer, but still it is not right at all.  

Has anyone done something like this?  I can't seem to find any examples, or posts that are like it.  
Any ideas, or info would greatly be appreciated.

Thank you.