Class borderModifier

  • All Implemented Interfaces:
    IPolygonModifier

    public class borderModifier
    extends AbstractPolygonModifier
    In order not to generate a self intersecting modified polygons, in this modifier, for each line segment p1 p2 across the input polygon we generate 2 random points within the line segment p1 p2
    Version:
    Jul 15, 2016
    Author:
    Mohamed Sherif (sherif@informatik.uni-leipzig.de)
    • Constructor Detail

      • borderModifier

        public borderModifier()
    • Method Detail

      • modify

        public Polygon modify​(Polygon poly,
                              double threshold)
        Modifies a polygon by adding a random error between -threshold and +threshold to its latitude and longitude
        Parameters:
        poly - Polygon to modify
        threshold - Error range
        Returns:
        Modified polygon with the same name
      • getName

        public String getName()
        Description copied from interface: IPolygonModifier
        Return name of modifier class
        Returns:
        name of modifier, as string