Class RemoveSmallSegments
java.lang.Object
com.vividsolutions.jump.geom.AbstractGeometryProcessor
com.vividsolutions.jump.workbench.ui.plugin.analysis.RemoveSmallSegments
Simplifier removing segments based on their size, and taking care to remove
the point with angles close to 0%PI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.Geometryprocess(org.locationtech.jts.geom.Geometry geometry) Main method taking an input geometry and returning a new Geometry which may have different properties.org.locationtech.jts.geom.LinearRingprocess(org.locationtech.jts.geom.LinearRing ring) Method to process LinearRings.voidMethod to process LineStrings.Methods inherited from class AbstractGeometryProcessor
process, process, process, process
-
Constructor Details
-
RemoveSmallSegments
public RemoveSmallSegments(double tolerance)
-
-
Method Details
-
process
public org.locationtech.jts.geom.Geometry process(org.locationtech.jts.geom.Geometry geometry) Description copied from class:AbstractGeometryProcessorMain method taking an input geometry and returning a new Geometry which may have different properties.- Overrides:
processin classAbstractGeometryProcessor- Parameters:
geometry- the Geometry to process- Returns:
- a new Geometry
-
process
public void process(org.locationtech.jts.geom.LineString line, List<org.locationtech.jts.geom.Geometry> list) Description copied from class:AbstractGeometryProcessorMethod to process LineStrings. Override this method to transform linear elements).- Overrides:
processin classAbstractGeometryProcessor- Parameters:
line- input LineStringlist- the list accumulating all processed simple component.
-
process
public org.locationtech.jts.geom.LinearRing process(org.locationtech.jts.geom.LinearRing ring) Description copied from class:AbstractGeometryProcessorMethod to process LinearRings.- Overrides:
processin classAbstractGeometryProcessor- Parameters:
ring- input LinearRing- Returns:
- a new processed LinearRing
-