Microsoft.Spatial 8.3.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
- Issues: Report issues on Github issues.
- Questions: Ask questions on Stack Overflow.
- Feedback: Please send mails to odatafeedback@microsoft.com.
- Team blog: Please visit https://devblogs.microsoft.com/odata/ and http://www.odata.org/blog/.
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.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.
|
33 |
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
|
33 |
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
|
32 |
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.
|
32 |
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.
|
31 |
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/.
|
31 |
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
|
31 |
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.
|
30 |
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
|
30 |
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
|
30 |
Version | Downloads | Last updated |
---|---|---|
9.0.0-preview.1 | 2 | 7/12/2025 |
8.3.0 | 2 | 7/12/2025 |
8.2.4 | 5 | 6/25/2025 |
8.2.3 | 22 | 12/17/2024 |
8.2.2 | 19 | 12/18/2024 |
8.2.1 | 16 | 12/18/2024 |
8.2.0 | 17 | 12/18/2024 |
8.1.0 | 16 | 10/31/2024 |
8.0.2 | 18 | 10/1/2024 |
8.0.1 | 20 | 8/20/2024 |
8.0.0 | 18 | 8/29/2024 |
8.0.0-rc.1 | 22 | 7/31/2024 |
8.0.0-preview.3 | 23 | 8/21/2024 |
8.0.0-preview.2 | 24 | 5/7/2024 |
8.0.0-preview.1 | 21 | 5/3/2024 |
7.22.0 | 2 | 7/12/2025 |
7.21.7 | 5 | 6/25/2025 |
7.21.6 | 16 | 12/18/2024 |
7.21.5 | 18 | 12/18/2024 |
7.21.4 | 20 | 10/4/2024 |
7.21.3 | 25 | 8/23/2024 |
7.21.2 | 19 | 8/15/2024 |
7.21.1 | 27 | 5/5/2024 |
7.21.0 | 22 | 5/3/2024 |
7.20.0 | 25 | 3/5/2024 |
7.19.0 | 21 | 3/5/2024 |
7.18.0 | 27 | 3/5/2024 |
7.17.0 | 26 | 3/5/2024 |
7.16.0 | 24 | 3/5/2024 |
7.15.0 | 25 | 3/5/2024 |
7.14.1 | 22 | 3/5/2024 |
7.14.0 | 26 | 3/5/2024 |
7.13.0 | 26 | 3/5/2024 |
7.12.5 | 26 | 3/5/2024 |
7.12.4 | 25 | 3/5/2024 |
7.12.3 | 27 | 3/5/2024 |
7.12.2 | 24 | 3/5/2024 |
7.12.1 | 26 | 3/5/2024 |
7.12.0 | 26 | 3/5/2024 |
7.11.1 | 24 | 3/5/2024 |
7.10.0 | 26 | 3/5/2024 |
7.9.4 | 25 | 3/5/2024 |
7.9.3 | 26 | 3/5/2024 |
7.9.2 | 28 | 3/5/2024 |
7.9.1 | 30 | 3/5/2024 |
7.9.0 | 26 | 3/5/2024 |
7.8.3 | 26 | 3/5/2024 |
7.8.2 | 26 | 3/5/2024 |
7.8.1 | 27 | 3/5/2024 |
7.7.3 | 27 | 3/5/2024 |
7.7.2 | 32 | 3/5/2024 |
7.7.1 | 29 | 4/12/2022 |
7.7.0 | 26 | 3/5/2024 |
7.7.0-beta | 26 | 3/5/2024 |
7.6.4 | 26 | 3/5/2024 |
7.6.3 | 29 | 3/5/2024 |
7.6.2 | 24 | 3/5/2024 |
7.6.1 | 26 | 3/5/2024 |
7.6.1-beta | 25 | 3/5/2024 |
7.6.0 | 26 | 3/5/2024 |
7.6.0-beta | 22 | 3/5/2024 |
7.5.4 | 25 | 3/5/2024 |
7.5.3 | 25 | 3/5/2024 |
7.5.2 | 25 | 3/5/2024 |
7.5.1 | 23 | 3/5/2024 |
7.5.0 | 25 | 3/5/2024 |
7.4.4 | 26 | 3/5/2024 |
7.4.3 | 25 | 3/5/2024 |
7.4.1 | 30 | 3/5/2024 |
7.4.0 | 29 | 3/5/2024 |
7.4.0-beta3 | 25 | 3/5/2024 |
7.4.0-beta2 | 24 | 3/5/2024 |
7.4.0-beta | 27 | 3/5/2024 |
7.3.1 | 30 | 3/5/2024 |
7.3.0 | 23 | 3/5/2024 |
7.3.0-beta | 28 | 3/5/2024 |
7.2.0 | 25 | 2/28/2024 |
7.1.1 | 25 | 3/5/2024 |
7.0.0 | 30 | 3/5/2024 |
7.0.0-beta | 29 | 3/5/2024 |
6.19.0 | 28 | 3/5/2024 |
6.18.0 | 27 | 3/5/2024 |
6.18.0-beta | 25 | 3/5/2024 |
6.17.0 | 28 | 3/5/2024 |
6.16.0 | 28 | 3/5/2024 |
6.16.0-beta | 23 | 3/5/2024 |
6.15.0 | 27 | 3/5/2024 |
6.15.0-beta | 26 | 3/5/2024 |
6.14.0 | 30 | 3/5/2024 |
6.14.0-rc2 | 28 | 3/5/2024 |
6.14.0-rc | 28 | 3/5/2024 |
6.14.0-beta | 23 | 3/5/2024 |
6.13.0 | 25 | 3/5/2024 |
6.13.0-rc | 28 | 3/5/2024 |
6.13.0-beta | 29 | 3/5/2024 |
6.12.0 | 27 | 3/5/2024 |
6.12.0-beta | 24 | 3/5/2024 |
6.11.0 | 25 | 3/5/2024 |
6.10.0 | 26 | 3/5/2024 |
6.9.0 | 28 | 3/5/2024 |
6.8.1 | 26 | 3/5/2024 |
6.8.0 | 27 | 3/5/2024 |
6.7.0 | 28 | 3/5/2024 |
6.6.0 | 26 | 3/5/2024 |
6.5.0 | 26 | 3/5/2024 |
6.4.0 | 26 | 3/5/2024 |
6.3.0 | 27 | 3/5/2024 |
6.2.0 | 31 | 3/5/2024 |
6.1.0 | 29 | 3/5/2024 |
6.0.0 | 25 | 3/5/2024 |
6.0.0-beta1 | 24 | 3/5/2024 |
6.0.0-alpha2 | 26 | 3/5/2024 |
6.0.0-alpha1 | 26 | 3/5/2024 |