# Intersection and union of polygons - IoU Metric

**URL:** <https://discourse.julialang.org/t/intersection-and-union-of-polygons-iou-metric/45506>\
**Category:** Geo\
**Tags:** geo, polygons\
**Created:** [August 25, 2020, 3:03pm UTC](https://discourse.julialang.org/t/intersection-and-union-of-polygons-iou-metric/45506 "2020-08-25T15:03:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxfreu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maxfreu/32/17468_2.png) [@maxfreu](https://discourse.julialang.org/u/maxfreu)\
**Post date:** [August 25, 2020, 3:03pm UTC](https://discourse.julialang.org/t/intersection-and-union-of-polygons-iou-metric/45506/1 "2020-08-25T15:03:27Z")

</div>

Hi!  
I would like to compute the intersection over union metric for polygons (concave polygons with holes). Is there a package which implements calculating the intersecting polygon, the union polygon as well as their areas?

---

<div class="post-metadata">

**Author:** ![Huite](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/huite/32/14034_2.png) [@Huite](https://discourse.julialang.org/u/Huite)\
**Post date:** [September 21, 2020, 8:51am UTC](https://discourse.julialang.org/t/intersection-and-union-of-polygons-iou-metric/45506/2 "2020-09-21T08:51:47Z")

</div>

Maybe you already found it by now by googling (since we’re talking 27 days):

This should do what you’re after:  
[https://github.com/JuliaGeo/LibGEOS.jl](https://github.com/JuliaGeo/LibGEOS.jl)

---

<div class="post-metadata">

**Author:** ![maxfreu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maxfreu/32/17468_2.png) [@maxfreu](https://discourse.julialang.org/u/maxfreu)\
**Post date:** [September 22, 2020, 11:47am UTC](https://discourse.julialang.org/t/intersection-and-union-of-polygons-iou-metric/45506/3 "2020-09-22T11:47:22Z")

</div>

Thank you! Indeed I already found LibGEOS by browsing through the JuliaGEO org on github, but forgot to update the post.
