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

Sharpmap+Sql Server 2008 r2+Stored Procedure

Topics: Data Access, SharpMap v2.0, WinForms Controls
Nov 3, 2011 at 2:33 PM

Hi, guys!

I am new to development with Sharpmap, and wondered if anyone could help me withsimple examples to draw the geometric data from a database SQL Server 2008 R2, usingstored procedure?

Thank you in advance for your attention.

Nov 3, 2011 at 10:01 PM

can you be more specific? with "draw" do you mean? show data on screen or edit objects? and why you need to use stored procedures?

Nov 4, 2011 at 12:04 PM


Thank you for responding to my post. Need only a draw in mapbox, and also select an area to zoom.

The reason for using the stored procedure, is due to the fact that I create a temporary table to store data processed in various system tables.

Thanks in advance for your attention.

Nov 4, 2011 at 12:15 PM

You need to persist your data in a table containing a SqlGeometry or SqlGeometry field, then you can show data in a standard way.

You can check the "samples" projects inside SharpMap's code.