GeoLibrary 1.0.1

Geo 2D library to read/write to geojson/wkt/wkb and do intersection, union, difference etc calculation. Support point, lineString, mulitpoint, polygon, multipolygon.

Install-Package GeoLibrary -Version 1.0.1
dotnet add package GeoLibrary --version 1.0.1
<PackageReference Include="GeoLibrary" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GeoLibrary --version 1.0.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

Build Status

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

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)
    • 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();

Geo.Library - a 2D geospatial library for .NET

Build Status

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

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)
    • 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.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 647 10/3/2019
1.0.0 1,460 7/23/2019
0.5.1 1,654 5/20/2019
0.5.0 102 5/17/2019
0.4.1 135 4/3/2019
0.4.0 126 3/26/2019
0.3.0 143 3/6/2019
0.2.0 189 12/18/2018
0.1.1 183 12/11/2018
0.1.0 153 12/4/2018