/polylabel-java

A fast algorithm for finding the pole of inaccessibility of a polygon (in Java)

Primary LanguageJavaMIT LicenseMIT

Build Status Coverage Status

Polylabel-java

A Java port of the mapbox polylabel: a fast algorithm for finding the pole of inaccessibility of a polygon

Usage

public class Example {
    public static void main() {
        Polygon polygon = readPolygon(); // Get polygon data from somewhere.
        Point p = Polylabel.polylabel(polygon, 1);
    }
}