Class GeometryNoder
java.lang.Object
org.locationtech.jts.noding.snapround.GeometryNoder
Nodes the linework in a list of
Geometry
s using Snap-Rounding
to a given PrecisionModel
.
Input coordinates do not need to be rounded to the precision model. All output coordinates are rounded to the precision model.
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 Summary
ConstructorsConstructorDescriptionCreates a new noder which snap-rounds to a grid specified by the givenPrecisionModel
. -
Method Summary
Modifier and TypeMethodDescriptionnode
(Collection geoms) Nodes the linework of a set of Geometrys using SnapRounding.void
setValidate
(boolean isValidityChecked) Sets whether noding validity is checked after noding is performed.
-
Constructor Details
-
GeometryNoder
Creates a new noder which snap-rounds to a grid specified by the givenPrecisionModel
.- Parameters:
pm
- the precision model for the grid to snap-round to
-
-
Method Details
-
setValidate
public void setValidate(boolean isValidityChecked) Sets whether noding validity is checked after noding is performed.- Parameters:
isValidityChecked
-
-
node
Nodes the linework of a set of Geometrys using SnapRounding.- Parameters:
geoms
- a Collection of Geometrys of any type- Returns:
- a List of LineStrings representing the noded linework of the input
-