Package org.locationtech.jts.index.chain
Class MonotoneChainBuilder
- java.lang.Object
-
- org.locationtech.jts.index.chain.MonotoneChainBuilder
-
public class MonotoneChainBuilder extends java.lang.Object
ConstructsMonotoneChain
s for sequences ofCoordinate
s.- Version:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description MonotoneChainBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List
getChains(Coordinate[] pts)
Computes a list of theMonotoneChain
s for a list of coordinates.static java.util.List
getChains(Coordinate[] pts, java.lang.Object context)
Computes a list of theMonotoneChain
s for a list of coordinates, attaching a context data object to each.
-
-
-
Method Detail
-
getChains
public static java.util.List getChains(Coordinate[] pts)
Computes a list of theMonotoneChain
s for a list of coordinates.- Parameters:
pts
- the list of points to compute chains for- Returns:
- a list of the monotone chains for the points
-
getChains
public static java.util.List getChains(Coordinate[] pts, java.lang.Object context)
Computes a list of theMonotoneChain
s for a list of coordinates, attaching a context data object to each.- Parameters:
pts
- the list of points to compute chains forcontext
- a data object to attach to each chain- Returns:
- a list of the monotone chains for the points
-
-