Skip to content

Instantly share code, notes, and snippets.

View FObermaier's full-sized avatar
🇺🇦
Solidarity with Ukraine

Felix Obermaier FObermaier

🇺🇦
Solidarity with Ukraine
View GitHub Profile
@FObermaier
FObermaier / LatLon.cs
Last active May 2, 2022 11:00
Lat-/Longitude Utility
using System;
using System.Globalization;
using NetTopologySuite.Geometries;
namespace NetTopologySuite.Geography
{
public struct LatLon
{
/// <summary>
/// Initializes this LatLon struct with the provided <paramref name="lat"/> and <paramref name="lon"/> values
@FObermaier
FObermaier / GeographicCrs.txt
Created February 23, 2022 13:51
A comma separated list of srid values indicating a geographic coordinate system (based on EPSG dataset v10.054)
3819, 3821, 3823, 3824, 3888, 3889, 3906, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009, 4010,
4011, 4012, 4013, 4014, 4015, 4016, 4017, 4018, 4019, 4020, 4021, 4022, 4023, 4024, 4025, 4027, 4028,
4029, 4030, 4031, 4032, 4033, 4034, 4035, 4036, 4040, 4041, 4042, 4043, 4044, 4045, 4046, 4047, 4052,
4053, 4054, 4055, 4074, 4075, 4080, 4081, 4120, 4121, 4122, 4123, 4124, 4125, 4126, 4127, 4128, 4129,
4130, 4131, 4132, 4133, 4134, 4135, 4136, 4137, 4138, 4139, 4140, 4141, 4142, 4143, 4144, 4145, 4146,
4147, 4148, 4149, 4150, 4151, 4152, 4153, 4154, 4155, 4156, 4157, 4158, 4159, 4160, 4161, 4162, 4163,
4164, 4165, 4166, 4167, 4168, 4169, 4170, 4171, 4172, 4173, 4174, 4175, 4176, 4178, 4179, 4180, 4181,
4182, 4183, 4184, 4185, 4188, 4189, 4190, 4191, 4192, 4193, 4194, 4195, 4196, 4197, 4198, 4199, 4200,
4201, 4202, 4203, 4204, 4205, 4206, 4207, 4208, 4209, 4210, 4211, 4212, 4213, 4214, 4215, 4216, 4218,
4219, 4220, 4221, 4222, 4223, 4224, 4225, 4226, 4227, 4228, 4229, 4230, 4231, 4232, 4233, 4234, 4235,
@FObermaier
FObermaier / DatelineUtility.cs
Last active February 23, 2022 13:52
A simple utility class to handle dateline/anti-meridian issues with geometries
using NetTopologySuite.Geometries;
using NetTopologySuite.IO;
using NUnit.Framework;
using System;
using System.Collections.Generic;
namespace NTS.Package.Tests
{
/// <summary>
/// Utility class for dateline handling (IDEA)
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using NetTopologySuite.Algorithm;
using NetTopologySuite.Geometries;
using NetTopologySuite.IO;
using NetTopologySuite.Simplify;
using NUnit.Framework;
namespace NetTopologySuite.Samples.Geometries
@FObermaier
FObermaier / Issue417Test.cs
Created August 7, 2020 07:56
Test file for NTS Issue 417
using NUnit.Framework;
using NetTopologySuite.Geometries;
using NetTopologySuite.IO;
namespace NTS.Package.Tests
{
public class Issue417Fixture
{
private const string wkt1 =

NetTopologySuite Contributor License Agreement

The document below clarifies the terms under which You (the copyright owner or legal entity authorized by the copyright owner), may make "The Contributions" (software, bug fixes, configuration changes, documentation, or any other materials) to "The Work" (NetTopologySuite). This license protects You, "The Company" (NetTopologySuite-Team) and licensees; it does not change your rights to use your own contributions for any other purpose.
Please read and confirm the following information about You and The Contributions. If you have questions about these terms, please contact us at GitHub

You and "The Company" (NetTopologySuite-Team) agree:

  • You grant to "The Company" (SharpSoftware) a non-exclusive, irrevocable, worldwide, royalty-free, sublicenseable, relicenseable, transferable license under all of Your relevant intellectual property rights, to use, copy, prepare derivative works of, distribute and pub

NTS - .NET Topology Suite Licensing

May 1st, 2018

Preamble

NTS is derivative work of JTS Topology Suite. You can read about the licensing for this project [below][JTS Topology Suite licensing].

Project License

Copyright (C) 2005-2018 NetTopologySuite team >