Class Geometry


  • public class Geometry
    extends Object
    A class to generate geometry for a vector tile
    Since:
    17862
    • Method Detail

      • calculateSurveyorsArea

        static double calculateSurveyorsArea​(int[] xArray,
                                             int[] yArray)
        This is also known as the "shoelace formula".
        Parameters:
        xArray - The array of x coordinates
        yArray - The array of y coordinates
        Returns:
        The area of the object
        Throws:
        IllegalArgumentException - if the array lengths are not equal
      • getShapes

        public Collection<ShapegetShapes()
        Get the shapes to draw this geometry with
        Returns:
        A collection of shapes