Package org.locationtech.jts.index.chain
Class MonotoneChainBuilder
java.lang.Object
org.locationtech.jts.index.chain.MonotoneChainBuilder
Constructs
MonotoneChain
s
for sequences of Coordinate
s.- Version:
- 1.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
getChains
(Coordinate[] pts) Computes a list of theMonotoneChain
s for a list of coordinates.static List
getChains
(Coordinate[] pts, Object context) Computes a list of theMonotoneChain
s for a list of coordinates, attaching a context data object to each.
-
Constructor Details
-
MonotoneChainBuilder
public MonotoneChainBuilder()
-
-
Method Details
-
getChains
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
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
-