I have an SQL Server 2008 database with a column of type geography storing the shape of various Australian regions. I want to be able to draw these shapes on Google Maps.
This is for a ASP.NET C# website.
I have searched for any samples of how to do this but cannot find anything?
Does anyone have some samples of how to do this, specifically using geography data from SQL Server?
The answer from AdamW is correct, however doesn’t address the data being in the SqlGeography Data format.
Include a reference to Microsoft.SqlServer.Types
Note:
Geography points are 1 indexed not 0 indexed, and it is not foreach friendly either.