use of com.revolsys.geometry.index.chain.MonotoneChain 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