# shapesToWkt

The shapes as Well-Known Text, one geometry to a line and longitude first,
in the order of the list, with the positions [`shapeGeometry`](https://docs.mapcairn.com/api/core/shapeGeometry.md) gives
(six decimals, or more for a small shape), each as plain decimal text with
no exponent. A circle is written as the polygon of its outline, so it reads
back as a polygon. Only
[`exportableShapes`](https://docs.mapcairn.com/api/core/exportableShapes.md) are included, so the text is empty when there are
none.

This is a function exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import { shapesToWkt } from "@mapcairn/core";
 
function shapesToWkt(shapes: readonly DrawShape[]): string;
```

## Parameters

- `shapes` (`readonly DrawShape[]`)

## Returns

`string`

## See also

- [`DrawShape`](https://docs.mapcairn.com/api/core/DrawShape.md)

Source: [packages/core/src/draw/export.ts:238](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/draw/export.ts#L238)
