# Problem with GetIntersection

**URL:** <https://community.thinkgeo.com/t/problem-with-getintersection/2398>\
**Category:** WinForms\
**Created:** [May 17, 2014, 9:14am UTC](https://community.thinkgeo.com/t/problem-with-getintersection/2398 "2014-05-17T09:14:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan3](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/c68b51/32.png) [@Jonathan3](https://community.thinkgeo.com/u/Jonathan3)\
**Post date:** [May 17, 2014, 9:14am UTC](https://community.thinkgeo.com/t/problem-with-getintersection/2398/1 "2014-05-17T09:14:32Z")

</div>

I&nbsp;noticed&nbsp;a&nbsp;problem&nbsp;with&nbsp;GetIntersection&nbsp;returning&nbsp;a&nbsp;null&nbsp;multipolygonshape&nbsp;in&nbsp;the&nbsp;desktop&nbsp;edition&nbsp;release&nbsp;7.0.0.0&nbsp;for&nbsp;some&nbsp;polygons.&nbsp;&nbsp;However&nbsp;I&nbsp;tried&nbsp;the&nbsp;newer&nbsp;build&nbsp;7.0.0.337&nbsp;and&nbsp;it&nbsp;appeared&nbsp;to&nbsp;work&nbsp;fine.&nbsp;&nbsp;The&nbsp;line&nbsp;that&nbsp;causes&nbsp;the&nbsp;problem&nbsp;is:  
  
  
  
if&nbsp;(!doNotClip)&nbsp;{&nbsp;overlapMultiPolygonShape&nbsp;=&nbsp;currentMultiPolygonShape.GetIntersection(ClippingShape);&nbsp;}  
  
  
  
Since&nbsp;it&nbsp;work&nbsp;OK&nbsp;with&nbsp;the&nbsp;current&nbsp;build&nbsp;I&nbsp;think&nbsp;things&nbsp;should&nbsp;be&nbsp;OK&nbsp;however&nbsp;I&nbsp;thought&nbsp;it&nbsp;might&nbsp;be&nbsp;worth&nbsp;raising&nbsp;just&nbsp;to&nbsp;let&nbsp;you&nbsp;know,  
  
  
  
Regards,  
  
Jonathan

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [May 18, 2014, 10:07pm UTC](https://community.thinkgeo.com/t/problem-with-getintersection/2398/2 "2014-05-18T22:07:40Z")

</div>

Hi&nbsp;Jonathan,&nbsp;  
&nbsp;&nbsp;  
&nbsp;We&nbsp;thanks&nbsp;for&nbsp;reporting&nbsp;this&nbsp;change&nbsp;very&nbsp;much.&nbsp;I&nbsp;checked&nbsp;this&nbsp;part&nbsp;and&nbsp;found&nbsp;we&nbsp;did&nbsp;have&nbsp;some&nbsp;modifications&nbsp;in&nbsp;it,&nbsp;we&nbsp;removed&nbsp;the&nbsp;SqlTypes&nbsp;from&nbsp;this&nbsp;part&nbsp;and&nbsp;I&nbsp;just&nbsp;guess&nbsp;this&nbsp;might&nbsp;be&nbsp;the&nbsp;root&nbsp;of&nbsp;the&nbsp;null&nbsp;polygon&nbsp;as&nbsp;SqlTypes&nbsp;is&nbsp;a&nbsp;bit&nbsp;strict&nbsp;on&nbsp;shape&nbsp;validations.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;again&nbsp;for&nbsp;this&nbsp;and&nbsp;I&nbsp;will&nbsp;keep&nbsp;one&nbsp;eye&nbsp;on&nbsp;the&nbsp;other&nbsp;similar&nbsp;change&nbsp;sets.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Troy
