# GeoLibrary 1.0.0

There is a newer version of this package available.
See the version list below for details.
`Install-Package GeoLibrary -Version 1.0.0`
`dotnet add package GeoLibrary --version 1.0.0`
`<PackageReference Include="GeoLibrary" Version="1.0.0" />`
For projects that support PackageReference, copy this XML node into the project file to reference the package.
`paket add GeoLibrary --version 1.0.0`
`#r "nuget: GeoLibrary, 1.0.0"`
#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

// Install GeoLibrary as a Cake Tool
#tool nuget:?package=GeoLibrary&version=1.0.0```

## 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 -Version 1.0.0
``````

• Point
• MultiPoint
• LineString
• Polygon
• MultiPolygon

### Features

• WKT Support
• Write to WKT string
• GeoJson Support
• 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)
• Intersects
• Point & Point
• Point & MultiPoint
• MultiPoint & MultiPoint
• Union
• Point & Point
• Point & MultiPoint
• MultiPoint & MultiPoint
• 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();
``````
• #### .NETStandard 2.0

• No dependencies.

### NuGet packages (3)

Showing the top 3 NuGet packages that depend on GeoLibrary:

VegaIntegracao

SDK de integração com as API's da Vega Monitoramento

Wappa.GraphQL.Types

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.