> ## Documentation Index
> Fetch the complete documentation index at: https://shapely.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Shapely Difference

>  It calculates the difference between two geometries. It subtracts the area where the second geometry intersects from the first geometry. This operation is used to see the difference between one geometry and other geometries. 

<Note>
  I recommend working with polygons for the best results!
</Note>

### An example of transformations

<a href="/images/Shp_Difference.png" target="_blank">
  <img src="https://mintcdn.com/shapely/Zmixl7owj_j1fwHG/images/Shp_Difference.png?fit=max&auto=format&n=Zmixl7owj_j1fwHG&q=85&s=5ac96f3c6a8e25d815e1e30d3bc1e62a" className="pointer-events-none" style={{ borderRadius: '0.5rem', border: '1px solid rgba(0,0,0,0.1)' }} width="1813" height="936" data-path="images/Shp_Difference.png" />
</a>

### An example of test

<Frame>
  <a href="https://github.com/DurmusCesur/docs/releases/download/Dyn/Shp_Difference.dyn" download="Shp_Difference.dyn">
    <button className="bg-[#16A34A] text-white px-5 py-1 rounded-md hover:bg-[#15803D] transition-colors">
      Shp\_Difference.dyn
    </button>
  </a>
</Frame>
