Class Decomposer


  • public class Decomposer
    extends Object
    Decompose a set of geometries into a lot of smaller geometries, based on a quadtree decomposition.
    Author:
    julien Gaffuri
    • Field Detail

      • logger

        public static org.apache.logging.log4j.Logger logger
    • Constructor Detail

      • Decomposer

        public Decomposer()
    • Method Detail

      • decomposeGeometry

        public static Collection<org.locationtech.jts.geom.Geometry> decomposeGeometry​(Collection<Feature> fs,
                                                                                       boolean parallel,
                                                                                       int maxCoordinatesNumber,
                                                                                       int objMaxCoordinateNumber,
                                                                                       Partition.GeomType gt,
                                                                                       double midRandom)
        Parameters:
        fs - the input features
        maxCoordinatesNumber -
        objMaxCoordinateNumber -
        gt -
        midRandom -
        Returns:
      • decomposeFeature

        public static Collection<Feature> decomposeFeature​(Collection<Feature> fs,
                                                           boolean parallel,
                                                           int maxCoordinatesNumber,
                                                           int objMaxCoordinateNumber,
                                                           Partition.GeomType gt,
                                                           double midRandom)
        Parameters:
        fs -
        maxCoordinatesNumber -
        objMaxCoordinateNumber -
        gt -
        midRandom -
        Returns: