Hi All,
I am trying to implement map related applications,based on geometric values i am binding shapefile into Google maps,for this i am using Sharpmap dll.Here i can able call tables in sharpMap dll's,but how can i call stored procedures in sharpMap.
i am using the below code
string query = "select * from dbo.india1";
SharpMap.Layers.VectorLayer vly = new SharpMap.Layers.VectorLayer("vly", new SharpMap.Data.Providers.SqlServer2008(connectionString, query, "geom", "State", SharpMap.Data.Providers.SqlServerSpatialObjectType.Geometry, false, 4326));
vly.Style.EnableOutline = true;
vly.Style.Outline = Pens.Black;
vly.Style.Fill = Brushes.Red;
mapBox1.Map.Layers.Add(vly);
Please Share any related information to me.
What I have tried:
i had tried to any related classes are there in Sharp- Map dll's but i didn't find any related classes,and i tried to call stordprocedure instead of Table,but it's showing errors