Spatial Library

Starting with version 3, the Open Data Protocol (OData) supports geospatial data types as a new set of primitives. This release includes a new spatial library that provides the default implementation for 16-new spatial OData primitive types and many corresponding operations that can be performed on spatial values in filter, select, and order by clauses. These types can be used as other primitive types: they can be passed in URIs as literals, types and values for properties, and projected in $select statements. Like other primitives, there is a set of canonical functions that can be used with them. Geospatial types may not be used as entity keys or in ETags. For more information, see the post Geospatial data support in OData.


The Entity Framework provider does not support spatial types in this release.

These new spatial types and operations are defined in the System.Spatial namespace.

See Also


OData Library

WCF Data Services

Other Resources

WCF Data Services