GeoLibrary 1.2.1
.NET Standard 2.0
dotnet add package GeoLibrary --version 1.2.1
NuGet\Install-Package GeoLibrary -Version 1.2.1
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="GeoLibrary" Version="1.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GeoLibrary --version 1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GeoLibrary, 1.2.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install GeoLibrary as a Cake Addin
#addin nuget:?package=GeoLibrary&version=1.2.1
// Install GeoLibrary as a Cake Tool
#tool nuget:?package=GeoLibrary&version=1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Geo.Library - a 2D geospatial library for .NET
Geo 2D library to read/write to wkt/wkb/geojson and do intersection, union, difference etc calculation. Support point, mulitpoint, polygon, multipolygon.
Nuget
Install-Package GeoLibrary
Support Geometry Types
- Point
- MultiPoint
- LineString
- Polygon
- MultiPolygon
Features
- WKT Support
- Read from WKT string
- Write to WKT string
- GeoJson Support
- Read from GeoJson string
- Write to GeoJson string
- WKB Support
- Read from WKB hex string
- Write to WKB hex string
- Geometry Operations
- Intersection Check
- Point & Point
- Point & MultiPoint
- MultiPoint & MultiPoint
- Point & Polygon (Whether a point is inside a polygon)
- MultiPoint & Polygon (Whether any point is inside a polygon)
- Intersects
- Point & Point
- Point & MultiPoint
- MultiPoint & MultiPoint
- Union
- Point & Point
- Point & MultiPoint
- MultiPoint & MultiPoint
- Intersection Check
- Point Special Functions
- IsBetweenLinear: check whether point lies between two points
- DistanceTo: calculate Euclidean distance to another point
- HaversineDistanceTo: calculate Haversine distance to another point
- Polygon Special Functions
- IsPointInside: check whether a point is inside a polygon
- CalculateCentroid: calculate centroid of the polygon
- Area: get the area of the polygon
Usage
string wkt = "POINT (10 20)";
var point = Geometry.FromWkt(wkt);
var pointWkt = point.ToWkt();
string geoJson = "{\"type\": \"LineString\", \"coordinates\": [[30, 10], [10, 30], [40, 40]] }"
var lineString = Geometry.FromGeoJson(geoJson);
var lineStringGeoJson = lineString.ToGeoJson();
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on GeoLibrary:
Package | Downloads |
---|---|
VegaIntegracao
SDK de integração com as API's da Vega Monitoramento |
|
Wappa.GraphQL.Types
Adds GeoPoint scalar type. |
|
HotChocolate.Types.GeoLibrary
Simple extension to the original HotChocolate Type system to include Point and Polygon types from GeoLibrary. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.1 | 13,582 | 4/18/2022 |
1.2.0 | 8,754 | 2/6/2022 |
1.1.0 | 53,300 | 4/27/2020 |
1.0.2 | 4,787 | 1/7/2020 |
1.0.1 | 7,902 | 10/3/2019 |
1.0.0 | 2,481 | 7/23/2019 |
0.5.1 | 4,243 | 5/20/2019 |
0.5.0 | 502 | 5/17/2019 |
0.4.1 | 506 | 4/3/2019 |
0.4.0 | 482 | 3/26/2019 |
0.3.0 | 511 | 3/6/2019 |
0.2.0 | 613 | 12/18/2018 |
0.1.1 | 624 | 12/11/2018 |
0.1.0 | 598 | 12/4/2018 |