shapesToGeoJsonText
The text of the GeoJSON file for the shapes: shapesToGeoJson as
JSON indented by two spaces, with every number written as plain decimal
text and none with an exponent (0.00000078, not 7.8e-7), as the CSV and
the WKT are. The text is the same as JSON.stringify(collection, null, 2)
wherever that has no exponent.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { shapesToGeoJsonText } from "@mapcairn/core";
function shapesToGeoJsonText(shapes: readonly DrawShape[]): string;
Parameters
shapes(readonly DrawShape[])
Returns
string