use of com.revolsys.geometry.noding.BasicSegmentString in project com.revolsys.open by revolsys.
the class NodingFunctions method newSegmentStrings.
private static List<SegmentString> newSegmentStrings(final Geometry geom) {
final List<SegmentString> segs = new ArrayList<>();
final List<LineString> lines = geom.getGeometries(LineString.class);
for (final LineString line : lines) {
segs.add(new BasicSegmentString(line, null));
}
return segs;
}
use of com.revolsys.geometry.noding.BasicSegmentString in project com.revolsys.open by revolsys.
the class MCIndexedPointInAreaLocator method addLine.
private void addLine(final LineString points) {
final SegmentString segStr = new BasicSegmentString(points, null);
final List<MonotoneChain> chains = MonotoneChainBuilder.getChains(segStr.getLineString(), segStr);
for (final MonotoneChain chain : chains) {
this.index.insertItem(chain);
}
}
Aggregations