Skip to main content

FormatWktOptions

Options for formatWkt.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { FormatWktOptions } from "@mapcairn/core";

interface FormatWktOptions

Properties​

precision​

readonly precision?: number;

Round every number to this many decimal places, a whole number from 0 to 20. Without it each number is written with the digits needed to read it back exactly. Either way a number is written as plain decimal text, never with an exponent (0.00000078, not 7.8e-7).

Source: packages/core/src/geometry/wkt.ts:11