Microsoft.Spatial 8.4.0

Microsoft.Spatial

The Microsoft.Spatial library provides classes and methods for geographic and geometric operations. It is a core component of the OData .NET libraries, enabling you to work with geospatial data types such as points in 2D/3D space, lat/long, lines, and polygons.

Installation

You can install the Microsoft.Spatial package via NuGet:

dotnet add package Microsoft.Spatial

Or via the NuGet Package Manager Console:

Install-Package Microsoft.Spatial

Getting Started

Creating and Using Spatial Data

Here's a simple example of how to create and use spatial data types with Microsoft.Spatial:

using Microsoft.Spatial;

// Create a GeographyPoint
var point = GeographyPoint.Create(47.6097, -122.3331);

// Output the point's coordinates
Console.WriteLine($"Latitude: {point.Latitude}, Longitude: {point.Longitude}");

// Create a GeographyLineString
var lineString = GeographyFactory.LineString()
    .LineTo(47.6097, -122.3331)
    .LineTo(47.6205, -122.3493)
    .Build();

// Output the line string's points
foreach (var position in lineString.Points)
{
    Console.WriteLine($"Point: Latitude {position.Latitude}, Longitude {position.Longitude}");
}

Documentation

For more detailed information, please refer to the official documentation.

Community

Contribution

There are many ways for you to contribute to OData .NET. The easiest way is to participate in discussion of features and issues. You can also contribute by sending pull requests of features or bug fixes to us. Contribution to the documentations is also highly welcomed. Please refer to the CONTRIBUTING.md for more details.

Reporting Security Issues

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.

5.3 Support

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Showing the top 20 packages that depend on Microsoft.Spatial.

Packages Downloads
Microsoft.OData.Core
Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4 only. Enables construction of OData producers and consumers. Targets .NET Portable Lib with support for .NET 4.0, SL 5.0, Win Phone 8, Win Phone 8.1, and Win 8. Localized for CHS, CHT, DEU, ESN, FRA, ITA, JPN, KOR and RUS. OData .NET library is open source at http://odata.codeplex.com
44
Microsoft.AspNetCore.OData
This package contains everything you need to create OData v4.0 endpoints using ASP.NET Core MVC Core 3.x and 5.x to support OData query syntax for your Web APIs.
44
Microsoft.OData.Core
Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4 only. Enables construction of OData producers and consumers. Targets .NET Core 5, and .NET Portable Lib with support for .NET 4.0, SL 5.0, Win Phone 8, Win Phone 8.1, and Win 8. Localized for CHS, CHT, DEU, ESN, FRA, ITA, JPN, KOR and RUS. OData .NET library is open source at http://github.com/OData/odata.net
43
Microsoft.OData.Core
Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4 only. Enables construction of OData producers and consumers. Targets .NET Portable Lib with support for .NET 4.0, SL 5.0, Win Phone 8, Win Phone 8.1, and Win 8. Localized for CHS, CHT, DEU, ESN, FRA, ITA, JPN, KOR and RUS. OData .NET library is open source at http://odata.codeplex.com
43
Microsoft.OData.Core
Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4 only. Enables construction of OData producers and consumers. Targets .NET Core 5, and .NET Portable Lib with support for .NET 4.0, SL 5.0, Win Phone 8, Win Phone 8.1, and Win 8. Localized for CHS, CHT, DEU, ESN, FRA, ITA, JPN, KOR and RUS. OData .NET library is open source at http://github.com/OData/odata.net
42
Microsoft.OData.Core
Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4. Enables construction of OData services and clients. Targets .NET Platform Standard 1.1. OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://docs.microsoft.com/en-us/odata/.
40
Microsoft.OData.Core
Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4. Enables construction of OData services and clients. Targets .NET Platform Standard 1.1. OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://odata.github.io/odata.net.
40
Microsoft.OData.Core
Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4 only. Enables construction of OData producers and consumers. Targets .NET Portable Lib with support for .NET 4.0, SL 5.0, Win Phone 8, and Win 8. Localized for CHS, CHT, DEU, ESN, FRA, ITA, JPN, KOR and RUS. OData .NET library is open source at http://odata.codeplex.com
40
Microsoft.OData.Core
Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4 only. Enables construction of OData producers and consumers. Targets .NET Core 5, and .NET Portable Lib with support for .NET 4.0, SL 5.0, Win Phone 8, Win Phone 8.1, and Win 8. Localized for CHS, CHT, DEU, ESN, FRA, ITA, JPN, KOR and RUS. OData .NET library is open source at http://github.com/OData/odata.net
40
Microsoft.AspNetCore.OData
This package contains everything you need to create OData v4.0 endpoints using ASP.NET Core MVC Core 3.x and 5.x to support OData query syntax for your Web APIs.
40
Microsoft.OData.Core
Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4. Enables construction of OData services and clients. Targets .NET Platform Standard 1.1. OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://docs.microsoft.com/en-us/odata/.
39
Microsoft.OData.Core
Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4 only. Enables construction of OData producers and consumers. Targets .NET Core 5, and .NET Portable Lib with support for .NET 4.0, SL 5.0, Win Phone 8, Win Phone 8.1, and Win 8. Localized for CHS, CHT, DEU, ESN, FRA, ITA, JPN, KOR and RUS. OData .NET library is open source at http://github.com/OData/odata.net
39
Microsoft.AspNetCore.OData
This package contains everything you need to create OData v4.0 endpoints using ASP.NET Core MVC Core 3.x and 5.x to support OData query syntax for your Web APIs.
39
Microsoft.OData.Core
Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4. Enables construction of OData services and clients. Targets .NET Platform Standard 1.1. OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://odata.github.io/odata.net.
38

https://learn.microsoft.com/en-us/odata/changelog/

This package has no dependencies.

Version Downloads Last updated
9.0.0-preview.2 10 8/21/2025
9.0.0-preview.1 19 7/12/2025
8.4.0 8 9/11/2025
8.3.0 14 7/12/2025
8.2.4 18 6/25/2025
8.2.3 28 12/17/2024
8.2.2 25 12/18/2024
8.2.1 21 12/18/2024
8.2.0 25 12/18/2024
8.1.0 23 10/31/2024
8.0.2 24 10/1/2024
8.0.1 25 8/20/2024
8.0.0 22 8/29/2024
8.0.0-rc.1 28 7/31/2024
8.0.0-preview.3 30 8/21/2024
8.0.0-preview.2 31 5/7/2024
8.0.0-preview.1 25 5/3/2024
7.22.0 12 7/12/2025
7.21.7 19 6/25/2025
7.21.6 22 12/18/2024
7.21.5 24 12/18/2024
7.21.4 26 10/4/2024
7.21.3 33 8/23/2024
7.21.2 25 8/15/2024
7.21.1 32 5/5/2024
7.21.0 30 5/3/2024
7.20.0 30 3/5/2024
7.19.0 26 3/5/2024
7.18.0 33 3/5/2024
7.17.0 31 3/5/2024
7.16.0 29 3/5/2024
7.15.0 33 3/5/2024
7.14.1 33 3/5/2024
7.14.0 31 3/5/2024
7.13.0 31 3/5/2024
7.12.5 31 3/5/2024
7.12.4 31 3/5/2024
7.12.3 35 3/5/2024
7.12.2 28 3/5/2024
7.12.1 33 3/5/2024
7.12.0 31 3/5/2024
7.11.1 29 3/5/2024
7.10.0 31 3/5/2024
7.9.4 32 3/5/2024
7.9.3 31 3/5/2024
7.9.2 32 3/5/2024
7.9.1 35 3/5/2024
7.9.0 32 3/5/2024
7.8.3 31 3/5/2024
7.8.2 33 3/5/2024
7.8.1 35 3/5/2024
7.7.3 35 3/5/2024
7.7.2 36 3/5/2024
7.7.1 33 4/12/2022
7.7.0 31 3/5/2024
7.7.0-beta 31 3/5/2024
7.6.4 32 3/5/2024
7.6.3 36 3/5/2024
7.6.2 30 3/5/2024
7.6.1 31 3/5/2024
7.6.1-beta 29 3/5/2024
7.6.0 30 3/5/2024
7.6.0-beta 30 3/5/2024
7.5.4 30 3/5/2024
7.5.3 30 3/5/2024
7.5.2 30 3/5/2024
7.5.1 32 3/5/2024
7.5.0 30 3/5/2024
7.4.4 30 3/5/2024
7.4.3 32 3/5/2024
7.4.1 34 3/5/2024
7.4.0 37 3/5/2024
7.4.0-beta3 31 3/5/2024
7.4.0-beta2 29 3/5/2024
7.4.0-beta 35 3/5/2024
7.3.1 37 3/5/2024
7.3.0 33 3/5/2024
7.3.0-beta 33 3/5/2024
7.2.0 30 2/28/2024
7.1.1 30 3/5/2024
7.0.0 35 3/5/2024
7.0.0-beta 36 3/5/2024
6.19.0 35 3/5/2024
6.18.0 33 3/5/2024
6.18.0-beta 32 3/5/2024
6.17.0 35 3/5/2024
6.16.0 35 3/5/2024
6.16.0-beta 30 3/5/2024
6.15.0 34 3/5/2024
6.15.0-beta 34 3/5/2024
6.14.0 35 3/5/2024
6.14.0-rc2 33 3/5/2024
6.14.0-rc 35 3/5/2024
6.14.0-beta 32 3/5/2024
6.13.0 31 3/5/2024
6.13.0-rc 36 3/5/2024
6.13.0-beta 35 3/5/2024
6.12.0 35 3/5/2024
6.12.0-beta 30 3/5/2024
6.11.0 31 3/5/2024
6.10.0 31 3/5/2024
6.9.0 33 3/5/2024
6.8.1 32 3/5/2024
6.8.0 32 3/5/2024
6.7.0 34 3/5/2024
6.6.0 30 3/5/2024
6.5.0 32 3/5/2024
6.4.0 32 3/5/2024
6.3.0 36 3/5/2024
6.2.0 39 3/5/2024
6.1.0 34 3/5/2024
6.0.0 32 3/5/2024
6.0.0-beta1 30 3/5/2024
6.0.0-alpha2 32 3/5/2024
6.0.0-alpha1 33 3/5/2024