On this page

Function classifyRings

  • Classifies an array of rings into polygons with outer rings and holes

    Type Parameters

    Parameters

    • rings: RingWithArea<T>[]

      the rings to classify

    • OptionalmaxRings: number

      the maximum number of rings to include in a polygon, use 0 to include all rings

    Returns RingWithArea<T>[][]

    an array of polygons with internal rings as holes

Was this helpful?
SDK JS
Reference
classifyRings