# shapesToCsv

The shapes as CSV text: `id`, `type`, `area_m2`, `length_m`, the GeoJSON
geometry as quoted text, and for a circle its `radius_m`, `centre_lng`
and `centre_lat`, so a circle can be read back as a circle (written as the
GeoJSON properties are, see [`shapesToGeoJson`](https://docs.mapcairn.com/api/core/shapesToGeoJson.md)). Rows end with
CRLF between them, the measures are rounded to two decimals and are empty
where they do not apply, and no number has an exponent. Only
[`exportableShapes`](https://docs.mapcairn.com/api/core/exportableShapes.md) are included.

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

## Signature

```ts
import { shapesToCsv } from "@mapcairn/core";
 
function shapesToCsv(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:276](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/draw/export.ts#L276)
