Showing all posts tagged: 'Spatial'

A 1-post collection

Working with DbGeography, Points and Polygons in .NET

One very handy feature of the System.Data.Spatial namespace is the DbGeography class that allows you to work with either points on a "map" or shapes/polygons. To create a DbGeography point object you need to know the latitude and longitude of that point. There are many services that allow lookup these values for a given place, so we can pass the string "Glasgow" and get back the values 56.033113,-4.789563 as a latitude/longitude pair. How can we convert these values to a DbGeography point? Like this: public static DbGeography ConvertLatLonToDbGeography(double …[read more]