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). 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 are included.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { shapesToCsv } from "@mapcairn/core";
function shapesToCsv(shapes: readonly DrawShape[]): string;
Parameters
shapes(readonly DrawShape[])
Returns
string