# Highlight intersecting polygon between two layers

**URL:** <https://community.thinkgeo.com/t/highlight-intersecting-polygon-between-two-layers/10006>\
**Category:** ThinkGeo UI for Web\
**Created:** [February 2, 2021, 1:23pm UTC](https://community.thinkgeo.com/t/highlight-intersecting-polygon-between-two-layers/10006 "2021-02-02T13:23:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mouni\_M](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/f1d935/32.png) [@Mouni\_M](https://community.thinkgeo.com/u/Mouni_M)\
**Post date:** [February 2, 2021, 1:23pm UTC](https://community.thinkgeo.com/t/highlight-intersecting-polygon-between-two-layers/10006/1 "2021-02-02T13:23:58Z")

</div>

Hi,  
My requirement is to get common area/polygons to be highlighted between two shapefile layers.  
One is alignmentLayer.2nd is Gut Boundary Layer.  
Alignment layer is just a two parallel lines having no closing ends shown in brown color in Image Map1

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/e/e/eeb3f6bda3d9b33c5c3ad87547abe09575e6e46a.png)  
and I want common area between these two layers to be highlighted as shown in image Map2 as blue lines like no.s 1519,1520,1521 etc.  
 ![image](https://community.thinkgeo.com/uploads/default/original/3X/c/e/ce700888877a179beeff95d90a065f36c86d6faf.png)

I have tried different solutions but could not get desired output.  
Any help will be appreciated.

Thank You,

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [February 2, 2021, 3:49pm UTC](https://community.thinkgeo.com/t/highlight-intersecting-polygon-between-two-layers/10006/2 "2021-02-02T15:49:26Z")

</div>

Thanks Mouni,  
You can try with

> **[Files · master · ThinkGeo / Public / Desktop Maps · GitLab](https://gitlab.com/thinkgeo/public/thinkgeo-desktop-maps/-/tree/master)**
>
> .NET controls for building interactive maps with professional-grade GIS controls for the Windows desktop using WPF or WinForms. Sponsor: https://thinkgeo.com

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/7/6/7616895b6d89198f1161806557792c4ac9d338a8.png)

After you get intersects features. You could loop the features and do  
var commonPart = features[i].GetIntersection(“the brown polygon”)；  
to get the common area.

Before do all of these you need generate “the brown polygon” by the two parallel lines.

Thanks

Frank
