Skip to content

Instantly share code, notes, and snippets.

@dfaivre
dfaivre / PolyLabel.cs
Last active February 27, 2024 16:18
PolyLabel (pole of inaccessibility of a polygon) - C#/NTS
using System;
using System.Collections.Generic;
using System.Linq;
using GeoAPI.Geometries;
using NetTopologySuite.Geometries;
namespace Foo
{
/// <summary>
/// Finds the largest area inside a polygon (ie, for a label)