Columbae.GeoJson 1.1.1-preview

.NET Standard 2.1
This is a prerelease version of Columbae.GeoJson.
dotnet add package Columbae.GeoJson --version 1.1.1-preview
NuGet\Install-Package Columbae.GeoJson -Version 1.1.1-preview
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="Columbae.GeoJson" Version="1.1.1-preview" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Columbae.GeoJson --version 1.1.1-preview
#r "nuget: Columbae.GeoJson, 1.1.1-preview"
#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 Columbae.GeoJson as a Cake Addin
#addin nuget:?package=Columbae.GeoJson&version=1.1.1-preview&prerelease

// Install Columbae.GeoJson as a Cake Tool
#tool nuget:?package=Columbae.GeoJson&version=1.1.1-preview&prerelease

Columbae

A geo library, based on Polylines, for dotnet core

Polylines

The polylines concept is designed by google: https://developers.google.com/maps/documentation/utilities/polylinealgorithm

Documentation

Encoding & decoding

Encoding multiple points

Encoding polyline can be done, just by executing the ToString() method overload.

var points = new List<Polypoint> {
    new Polypoint(latitude: 41.86231, longitude: -87.63804),
    new Polypoint(latitude: 41.87458, longitude: -87.63460),
};
var polyline = new Polyline(points);

Console.WriteLine(polyline.ToString()); // mfo~Fvx{uOukAoT

Decoding a polyline string to Points

Decoding a polyline can be done, just by passing the poly line string to the constructor.

var polylineString = "mfo~Fvx{uOukAoT";
var polyline = new Polyline(polylineString);

foreach(var point in polyline.Points)
{
    Console.WriteLine(point);
}

Origin

Credits

The actual parsing logic is based on the repo of Polyliner.NET by sglogowski.

Name

Named after the fast moving star Mu Columbae, which is a Runaway star. A runaway star is one that is moving through space with an abnormally high velocity relative to the surrounding interstellar medium. The proper motion of a runaway star often points exactly away from a stellar association, of which the star was formerly a member, before it was hurled out.

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 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.1
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.1-preview 221 10/26/2020
1.1.0 298 10/26/2020