Class Circularity


  • public class Circularity
    extends Object
    Maesure if a shape is close to a circle or not.
    Author:
    julien Gaffuri
    • Constructor Detail

      • Circularity

        public Circularity()
    • Method Detail

      • get

        public static double get​(org.locationtech.jts.geom.Geometry lr)
        Parameters:
        lr - Should be a linear ring, or a polygon, preferably without hole.
        Returns:
        0 for a circle, 0.12838 for a square, and more for non-circular shapes