gis-tools-ts - v0.6.0
    Preparing search index...

    Function polygonsUnion

    • Given a collection of polygons, if any of the polygons interact, merge them as a union

      Type Parameters

      • M = Record<string, unknown>
      • D extends Properties = Properties
      • P extends Properties = Properties

      Parameters

      • polygons:
            | VectorMultiPolygon<D>
            | VectorMultiPolygonGeometry<D>
            | VectorFeatures<M, D, P, VectorMultiPolygonGeometry<D>>

        the polygons are from either a VectorFeature, VectorPolygonGeometry, or raw VectorPolygon

      Returns VectorMultiPolygonGeometry<D> | undefined

      • a union of polygons should a union exist.