# Shapely Contains function - TopologyException: side location conflict

**URL:** <https://discuss.python.org/t/shapely-contains-function-topologyexception-side-location-conflict/8888>\
**Category:** Python Help\
**Created:** [May 24, 2021, 8:42am UTC](https://discuss.python.org/t/shapely-contains-function-topologyexception-side-location-conflict/8888 "2021-05-24T08:42:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dset](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/dset/32/4989_2.png) [@dset](https://discuss.python.org/u/dset)\
**Post date:** [May 24, 2021, 8:42am UTC](https://discuss.python.org/t/shapely-contains-function-topologyexception-side-location-conflict/8888/1 "2021-05-24T08:42:47Z")

</div>

Hi all,  
I’m working with polygons and shapely library and when I run the function:

`polygon1.contains(polygon2)`

I obtain following error:

`TopologyException: side location conflict at `

Polygon1 have holes too. Can someone help me to solve this error?

thank you very much
