public class GeometryNoder extends Object
Geometrys using Snap-Rounding
to a given scale.
The input coordinates are expected to be rounded
to the given precision model.
This class does not perform that function.
GeometryPrecisionReducer may be used to do this.
This class does not dissolve the output linework,
so there may be duplicate linestrings in the output.
Subsequent processing (e.g. polygonization) may require
the linework to be unique. Using UnaryUnion is one way
to do this (although this is an inefficient approach).
| Constructor and Description |
|---|
GeometryNoder(double scale)
Creates a new noder which snap-rounds to a grid specified
by the given scale.
|
| Modifier and Type | Method and Description |
|---|---|
List<LineString> |
node(Collection<? extends Geometry> geometries)
Nodes the linework of a set of Geometrys using SnapRounding.
|
void |
setValidate(boolean isValidityChecked)
Sets whether noding validity is checked after noding is performed.
|
public GeometryNoder(double scale)
pm - the precision model for the grid to snap-round topublic List<LineString> node(Collection<? extends Geometry> geometries)
geometries - a Collection of Geometrys of any typepublic void setValidate(boolean isValidityChecked)
isValidityChecked - Copyright © 2015 Revolution Systems Inc.. All rights reserved.