Click here to Skip to main content
15,074,483 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

C#
string query = "select * from dbo.india1";

          // string query = "select * from dbo.india1 where geom=''";
           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
Posted
Comments
CHill60 15-Mar-16 10:07am
   
"showing errors" is not helpful - we need to know what the errors are in order to help you.
I suggest you use the appropriate forum to find answers = SharpMap - Geospatial Application Framework for the CLR - Discussions[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900