How to access spatial data by using entity framework. Gets or sets a data contract serializable well known representation of this dbgeography value. Spatial data represents information about the physical location and shape of geometric objects. This includes connection strings to spatial data sources, specifying the type of spatial data that you need, and making sure that your report data includes match fields that associate the spatial data and analytical data. This code sample is part of the azurebingmaps application sample that demonstrates a lot of technologies which include how to access spatial data by using entity framework. It allows developers to incorporate spatial data, analysis and mapping functionality into their applications or to contribute gis extensions to the community. Our data and information is presented both spatially and geographically including the national map, earth explorer, glovis, landsatlook, and much more. Overview there are 3 ways to get the spatial data for your application. Spatial data types overview sql server microsoft docs. The sql server database engine has two spatial types geometry and geography. The geography spatial type helps organize geospatial mapping data into sql server tables and works with several sqlnative graphing functions to answer questions like how far apart two geographic locations are, or what locations fall within a certain radius. The geometry data type supports planar, or euclidean flatearth, data. These objects can be point locations or more complex objects such as countries, roads, or lakes.