Skip to main content

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 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 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​

import { shapesToWkt } from "@mapcairn/core";

function shapesToWkt(shapes: readonly DrawShape[]): string;

Parameters​

  • shapes (readonly DrawShape[])

Returns​

string

See also​

Source: packages/core/src/draw/export.ts:238