> For the complete documentation index, see [llms.txt](https://docs.k2geospatial.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.k2geospatial.com/en2/jmap-server-extensions/edition/jmap-edition-user-guide/i-wish-to.../perform-spatial-operations/spatial-tools.md).

# Spatial Tools

Spatial operations are performed on one or more selected elements.&#x20;

{% hint style="info" %}
A spatial operation results in a new geometry added to the **Annotations** layer.
{% endhint %}

When you perform spatial operations on editable elements, you can press and hold down the **CTRL** key to keep only the results of the operation, i.e. automatically deleting the editable elements that were selected.

## Buffer

Creates a buffer zone around the selected map elements.&#x20;

1. Select the desired elements and press![](/files/6anq8A0VQsjx6rtRU8t4).&#x20;
2. You must then specify the size of the buffer, i.e. the maximum distance between any point of the buffer and the selected elements. \
   The size can be negative, in which case the buffer can be smaller than the selected elements. \
   The size of the buffer is indicated in the map's unit of distance.
3. Keep **Generate a buffer for each selected element** checked if you want this type of buffer.&#x20;
4. Specify the precision of the buffer arcs, in degrees.&#x20;
5. Press OK. The example shows a 100 m buffer around each park in a city.<br>

   <figure><img src="/files/neaM2P9JgX2aiKwFMXLh" alt=""><figcaption></figcaption></figure>
6. Uncheck **Generate a buffer for each selected element** if you wish a single buffer to be generated for the set of selected elements.&#x20;
7. Specify the precision of the buffer arcs, in degrees.&#x20;
8. Press OK. The example shows a 100 m buffer around parks in a city.<br>

   <figure><img src="/files/DqvTqhs37ROyIuf6DRG9" alt=""><figcaption></figcaption></figure>

## Union

Creates a new element by uniting the selected elements.&#x20;

Select at least 2 elements and press ![](/files/B7loUDvOufYKkKtYRgAy).

<figure><img src="/files/3G3Le61guPtplpDSuZGH" alt=""><figcaption></figcaption></figure>

## Intersection

Creates a new element that is the intersection of the selected elements.&#x20;

Select at least 2 elements and press ![](/files/NVWFGDRJ8mbs30F8M7k9).

<figure><img src="/files/qlPLINkGzx5B9pkDCiY7" alt=""><figcaption></figcaption></figure>

## Difference

Creates a new map element that is the difference between the first selected element and the others. In other words, all elements are subtracted from the element that was selected first.&#x20;

Select at least 2 elements and press ![](/files/0rM3iCD01DXOcmqTV2TZ).

<figure><img src="/files/0otSAY1smJYAvLNMIMmq" alt=""><figcaption></figcaption></figure>

## Elementary polygons

Creates new elements resulting from the intersection of two polygons.

Select the two polygons and press ![](/files/ccpuQ4k2JnuIEBuLXjSk).

<figure><img src="/files/lVodns7hKQMjMKP2FSsj" alt=""><figcaption></figcaption></figure>

## Split polygon

Creates new elements resulting from the splitting of a polygon using a line.&#x20;

Select a polygon and a line that come from two different layers and press ![](/files/4ghGjljEH58SpKwTDHK9).

<figure><img src="/files/6paDVvRe5FBjfQzsTLCE" alt=""><figcaption></figcaption></figure>

## Convex

Creates a new element that is the smallest convex polygon that entirely covers the selected elements.

Select the elements and press ![](/files/zP4O6Eys0Mf19ycWDhvO).

<figure><img src="/files/E7FGCZ84m4k9MaHQKa41" alt=""><figcaption></figcaption></figure>
