Adding Point of Interest on the map

Topics: SharpMap v2.0, WinForms Controls
Feb 20, 2013 at 11:25 AM
So, I want to add some POI to the map. From the source code there are some example code
List<SharpMap.Geometries.Geometry> geometries = new List<SharpMap.Geometries.Geometry>();
    
geometries.Add(new SharpMap.Geometries.Point(23.345,64.325));
geometries.Add(new SharpMap.Geometries.Point(23.879,64.194));
SharpMap.Layers.VectorLayer layerVehicles = new SharpMap.Layers.VectorLayer("Vehicles");
layerVehicles.DataSource = new SharpMap.Data.Providers.GeometryProvider(geometries);
layerVehicles.Style.Symbol = Bitmap.FromFile(@"C:\data\car.gif");
So, I update the code with GeoAPI
List<GeoAPI.Geometries.IGeometry> geometries = new List<GeoAPI.Geometries.IGeometry>();

geometries.Add(new GeoAPI.Geometries.IPoint(23.345, 64.325));
geometries.Add(new GeoAPI.Geometries.IPoint(23.879, 64.194));
SharpMap.Layers.VectorLayer layerVehicles = new SharpMap.Layers.VectorLayer("Vehicles");
            layerVehicles.DataSource = new SharpMap.Data.Providers.GeometryProvider(geometries);
layerVehicles.Style.Symbol = Bitmap.FromFile(@"C:\data\car.gif");
mapBox1.Map.Layers.Add(layerVehicles);
But there are error at
geometries.Add(new GeoAPI.Geometries.IPoint(23.879, 64.194));
Cannot create an instance of the abstract class or interface 'GeoAPI.Geometries.IPoint'


So what should I do?
Coordinator
Feb 20, 2013 at 3:33 PM
GeoAPI only contains interfaces.
var gf = new NetTopologySuite.Geometries.GeometryFactory();
var geometries = new List<GeoAPI.Geometries.IGeometry>();
geometries.Add(gf.CreatePoint(new GeoAPI.Geometries.Coordinate(23.345, 64.325)));
//To be continued
Could you please point me to the sample code?

Hth FObermaier