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

Using Sharpmap with Net Topology Suite and SQL Server

Nov 2, 2006 at 4:04 PM
I'm trying to get a basic 'info' tool running in my SharpMap application. I'm using NTS to allow a precise spatial query at a point, using small buffers round my point features (as in the demo application). My info tool works fine if my vector layer is loaded from a shapefile. If, however, I use the same layer file loaded from SQL Server it fails with the error 'Specified cast is not valid' in BuildFromProvider() within the NTSProvider. Does anyone have any ideas?! Many thanks.
Nov 2, 2006 at 9:36 PM
Check out MsSqlSpatial and this forum post.

Best regards,
Ricardo Stuven.