Microsoft.Spatial 8.2.4

Prefix Reserved
dotnet add package Microsoft.Spatial --version 8.2.4
                    
NuGet\Install-Package Microsoft.Spatial -Version 8.2.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Spatial" Version="8.2.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Spatial" Version="8.2.4" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Spatial" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Spatial --version 8.2.4
                    
#r "nuget: Microsoft.Spatial, 8.2.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Microsoft.Spatial&version=8.2.4
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Spatial&version=8.2.4
                    
Install as a Cake Tool

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.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (124)

Showing the top 5 NuGet packages that depend on Microsoft.Spatial:

Package Downloads
Microsoft.OData.Core

Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4 and v4.01. Enables construction of OData services and clients. Targets .NET 8 or above. 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/.

Microsoft.AspNetCore.OData

This package contains everything you need to create OData v4.0 endpoints using ASP.NET Core MVC Core 8.x to support OData query syntax for your Web APIs.

Microsoft.OData.ModelBuilder

This package contains APIs to create OData Edm (Entity Data Model) using C# types, attributes and conventions.

Microsoft.Azure.Search.Data

Use this package if you're developing a .NET application using Azure Cognitive Search, and you only need to query or update documents in your indexes. If you also need to create or update indexes, synonym maps, or other service-level resources, use the Microsoft.Azure.Search package instead.

Microsoft.Azure.Search.Service

Use this package if you're developing automation in .NET to manage Azure Cognitive Search indexes, synonym maps, indexers, data sources, or other service-level resources. If you only need to query or update documents in your indexes, use the Microsoft.Azure.Search.Data package instead. If you need all the functionality of Azure Cognitive Search, use the Microsoft.Azure.Search package instead.

GitHub repositories (22)

Showing the top 20 popular GitHub repositories that depend on Microsoft.Spatial:

Repository Stars
microsoft/ailab
Experience, Learn and Code the latest breakthrough innovations with Microsoft AI
Azure/azure-sdk-for-net
This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
xamarin/xamarin-forms-samples
Sample apps built using the Xamarin.Forms framework
smartstore/SmartStoreNET
Open Source ASP.NET MVC Enterprise eCommerce Shopping Cart Solution
pnp/PnP
SharePoint / Office 365 Developer Patterns and Practices - Archived older solutions. Please see https://aka.ms/m365pnp for updated guidance
OfficeDev/TrainingContent
Training Content used for developer.microsoft.com/office
OData/WebApi
OData Web API: A server library built upon ODataLib and WebApi
OData/odata.net
ODataLib: Open Data Protocol - .NET Libraries and Frameworks
OData/AspNetCoreOData
ASP.NET Core OData: A server library built upon ODataLib and ASP.NET Core
telerik/xaml-sdk
The XAML SDK is an easy-to-use infrastructure with 1000+ developer focused examples for most of the Telerik UI for WPF controls.
microsoft/BotFramework-BlogSamples
Welcome to the Bot Framework samples repository. Here you will find sample bots that take advantage of Bot Framework capabilities.
rstropek/Samples
filipw/apress-recipes-webapi
Samples from ASP.NET Web API 2: Recipes book.
OData/ODataSamples
Samples: For ODataLib, OData Web API, RESTier, etc.
microsoft/Dynamics-AX-Integration
Dynamics AX Integration samples and demos.
ShaneK2/inVtero.net
inVtero.net: A high speed (Gbps) Forensics, Memory integrity & assurance. Includes offensive & defensive memory capabilities. Find/Extract processes, hypervisors (including nested) in memory dumps using microarchitechture independent Virtual Machiene Introspection techniques
zLulus/NotePractice
My_Note 笔记练习demo
Azure/azure-stream-analytics
Azure Stream Analytics
martin-nikolov/Telerik-Academy
Course exercises | Telerik Academy 2013/2014 | Martin Nikolov
znlgis/sod
PDF.NET 的追求:代码的精简,开发、维护的简单与极致的运行效率!
Version Downloads Last Updated
8.2.4 833 6/24/2025
8.2.3 1,708,488 12/11/2024
8.2.2 807,298 11/19/2024
8.2.1 30,031 11/13/2024
8.2.0 191,348 11/8/2024
8.1.0 492,978 10/17/2024
8.0.2 123,549 9/30/2024
8.0.1 2,229,323 8/19/2024
8.0.0 1,148,315 8/12/2024
8.0.0-rc.1 3,960 7/11/2024
8.0.0-preview.3 2,663 5/31/2024
8.0.0-preview.2 1,454 5/3/2024
8.0.0-preview.1 421 4/26/2024
7.21.7 355 6/23/2025
7.21.6 790,874 11/8/2024
7.21.5 171,667 10/22/2024
7.21.4 110,367 9/30/2024
7.21.3 1,356,710 6/3/2024
7.21.2 139,671 5/23/2024
7.21.1 348,363 5/2/2024
7.21.0 251,769 4/17/2024
7.20.0 8,350,825 12/8/2023
7.19.0 67,784 11/30/2023
7.18.0 1,287,504 9/6/2023
7.17.0 1,765,239 6/23/2023
7.16.0 5,862,050 5/16/2023
7.15.0 2,356,877 3/1/2023
7.14.1 138,220 2/15/2023
7.14.0 497,351 1/11/2023
7.13.0 1,548,796 12/9/2022
7.12.5 4,478,998 10/25/2022
7.12.4 118,231 10/18/2022
7.12.3 977,373 9/19/2022
7.12.2 3,397,311 8/12/2022
7.12.1 366,154 7/20/2022
7.12.0 395,241 6/21/2022
7.11.1 92,697 6/16/2022
7.10.0 2,397,053 1/31/2022
7.9.4 8,449,821 11/5/2021
7.9.3 268,747 10/8/2021
7.9.2 593,122 9/14/2021
7.9.1 143,936 8/26/2021
7.9.0 7,535,800 5/12/2021
7.8.3 1,315,290 3/3/2021
7.8.2 3,534,036 2/15/2021
7.8.1 1,034,000 12/18/2020
7.7.3 1,248,032 11/12/2020
7.7.2 1,002,177 9/23/2020
7.7.1 2,899,717 9/1/2020
7.7.0 952,166 6/26/2020
7.7.0-beta 7,211 5/29/2020
7.6.4 25,384,447 3/25/2020
7.6.3 1,333,588 1/30/2020
7.6.2 498,432 11/21/2019
7.6.1 6,596,274 9/30/2019
7.6.1-beta 4,046 9/18/2019
7.6.0 1,573,751 6/5/2019
7.6.0-beta 26,789 4/1/2019
7.5.4 939,209 2/15/2019
7.5.3 14,147,195 12/18/2018
7.5.2 228,330 11/20/2018
7.5.1 775,275 9/17/2018
7.5.0 31,787,725 6/27/2018
7.4.4 651,567 4/4/2018
7.4.3 94,345 3/21/2018
7.4.1 276,449 2/16/2018
7.4.0 1,674,514 1/22/2018
7.4.0-beta3 8,252 1/12/2018
7.4.0-beta2 5,318 12/18/2017
7.4.0-beta 7,390 11/2/2017
7.3.1 805,615 8/14/2017
7.3.0 76,838 7/24/2017
7.3.0-beta 4,375 7/17/2017
7.2.0 5,523,928 5/3/2017
7.1.1 180,533 4/11/2017
7.0.0 1,263,831 8/22/2016
7.0.0-beta 4,663 8/4/2016
6.19.0 706,927 11/14/2017
6.18.0 127,544 9/7/2017
6.18.0-beta 11,586 7/27/2017
6.17.0 528,346 6/12/2017
6.16.0 214,350 4/3/2017
6.16.0-beta 4,532 1/13/2017
6.15.0 5,267,283 3/18/2016
6.15.0-beta 19,493 1/25/2016
6.14.0 595,672 12/15/2015
6.14.0-rc2 4,632 12/2/2015
6.14.0-rc 8,552 10/30/2015
6.14.0-beta 4,306 10/16/2015
6.13.0 1,813,551 7/22/2015
6.13.0-rc 4,601 7/14/2015
6.13.0-beta 4,346 6/19/2015
6.12.0 363,161 5/22/2015
6.12.0-beta 4,462 5/15/2015
6.11.0 798,750 3/30/2015
6.10.0 342,296 2/6/2015
6.9.0 605,856 12/10/2014
6.8.1 365,180 10/20/2014
6.8.0 27,616 9/23/2014
6.7.0 35,196 8/29/2014
6.6.0 22,702 7/31/2014
6.5.0 116,558 6/30/2014
6.4.0 189,946 5/30/2014
6.3.0 12,095 4/28/2014
6.2.0 7,574 4/1/2014
6.1.0 5,974 3/4/2014
6.0.0 88,819 1/27/2014
6.0.0-beta1 7,254 12/9/2013
6.0.0-alpha2 4,515 11/7/2013
6.0.0-alpha1 4,225 10/4/2013