Package org.locationtech.jts.index.chain
Class MonotoneChainBuilder
- java.lang.Object
-
- org.locationtech.jts.index.chain.MonotoneChainBuilder
-
public class MonotoneChainBuilder extends Object
ConstructsMonotoneChains for sequences ofCoordinates.- Version:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description MonotoneChainBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ListgetChains(Coordinate[] pts)static ListgetChains(Coordinate[] pts, Object context)Return a list of theMonotoneChains for the given list of coordinates.static int[]getChainStartIndices(Coordinate[] pts)Return an array containing lists of start/end indexes of the monotone chains for the given list of coordinates.static int[]toIntArray(List list)
-
-
-
Method Detail
-
toIntArray
public static int[] toIntArray(List list)
-
getChains
public static List getChains(Coordinate[] pts)
-
getChains
public static List getChains(Coordinate[] pts, Object context)
Return a list of theMonotoneChains for the given list of coordinates.
-
getChainStartIndices
public static int[] getChainStartIndices(Coordinate[] pts)
Return an array containing lists of start/end indexes of the monotone chains for the given list of coordinates. The last entry in the array points to the end point of the point array, for use as a sentinel.
-
-