Class OmsLineSmootherMcMaster


  • public class OmsLineSmootherMcMaster
    extends HMModel
    • Field Detail

      • inVector

        public org.geotools.data.simple.SimpleFeatureCollection inVector
      • pLookahead

        public int pLookahead
      • pLimit

        public int pLimit
      • pSlide

        public double pSlide
      • pDensify

        public Double pDensify
      • pSimplify

        public Double pSimplify
      • outVector

        public org.geotools.data.simple.SimpleFeatureCollection outVector
    • Constructor Detail

      • OmsLineSmootherMcMaster

        public OmsLineSmootherMcMaster()
    • Method Detail

      • defaultSmoothShapefile

        public static void defaultSmoothShapefile​(String shapePath,
                                                  String outPath)
                                           throws Exception
        An utility method to use the module with default values and shapefiles.

        This will use the windowed average and a density of 0.2, simplification threshold of 0.1 and a lookahead of 13, as well as a length filter of 10.

        Parameters:
        shapePath - the input file.
        outPath - the output smoothed path.
        Throws:
        Exception