Thanks a lot FObermaier, I have used the above solution you provided it works like a charm.
Have a few more other errors after using that now.
var factory = GeoAPI.GeometryServices.Instance.CreateGeometryFactory(_SRID);
var pointArraySubject = factory.CreateGeometryCollection(null);
var mySubjectLayer = new SharpMap.Layers.VectorLayer("SubjectIcon");
mySubjectLayer.Style.Line = new System.Drawing.Pen(Outlinecolor, 3);
mySubjectLayer.DataSource = new SharpMap.Data.Providers.GeometryProvider(pointArraySubject); <-- Hitting a error here!
mySubjectLayer.Style.Fill = new System.Drawing.SolidBrush(Color.Yellow);
The error is like below, No idea what this is. I tried googling but no luck!
The call is ambiguous between the following methods or properties: 'SharpMap.Data.Providers.GeometryFeatureProvider.GeometryFeatureProvider(GeoAPI.Geometries.IGeometry)' and 'SharpMap.Data.Providers.GeometryFeatureProvider.GeometryFeatureProvider(System.Collections.Generic.IEnumerable<GeoAPI.Geometries.IGeometry>)'
How to add new coordinates into array? It seems this has been moved to another reference, is that so?.
Error in above line is like:
'GeoAPI.Geometries.IGeometryCollection' does not contain a definition for 'Collection' and no extension method 'Collection' accepting a first argument of type 'GeoAPI.Geometries.IGeometryCollection' could be found (are you missing a using directive or an assembly