Search in sources :

Example 6 with MonotoneChain

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);
    }
}
Also used : MonotoneChain(com.revolsys.geometry.index.chain.MonotoneChain) BasicSegmentString(com.revolsys.geometry.noding.BasicSegmentString) SegmentString(com.revolsys.geometry.noding.SegmentString) BasicSegmentString(com.revolsys.geometry.noding.BasicSegmentString)

Aggregations

MonotoneChain (com.revolsys.geometry.index.chain.MonotoneChain)6 BoundingBox (com.revolsys.geometry.model.BoundingBox)3 Iterator (java.util.Iterator)2 Bintree (com.revolsys.geometry.index.bintree.Bintree)1 LineString (com.revolsys.geometry.model.LineString)1 Point (com.revolsys.geometry.model.Point)1 BoundingBoxDoubleXY (com.revolsys.geometry.model.impl.BoundingBoxDoubleXY)1 BasicSegmentString (com.revolsys.geometry.noding.BasicSegmentString)1 SegmentString (com.revolsys.geometry.noding.SegmentString)1 List (java.util.List)1