Class OmsLineSmootherMcMaster
- java.lang.Object
-
- org.hortonmachine.gears.libs.modules.HMModel
-
- org.hortonmachine.gears.modules.v.smoothing.OmsLineSmootherMcMaster
-
public class OmsLineSmootherMcMaster extends HMModel
-
-
Constructor Summary
Constructors Constructor Description OmsLineSmootherMcMaster()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voiddefaultSmoothShapefile(String shapePath, String outPath)An utility method to use the module with default values and shapefiles.voidprocess()-
Methods inherited from class org.hortonmachine.gears.libs.modules.HMModel
checkCancel, checkFileExists, checkNull, checkWorkingFolderInPath, concatOr, dumpRaster, dumpVector, getDefaultThreadsNum, getRaster, getVector, help, isCanceled, template
-
-
-
-
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
-
-
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
-
-