# suggestWktAxisOrder

The other order of the two, when the first position in WKT text lies outside
the world in the order given but inside it in the other, which is the sign of
a file written the other way round. The position is the first one after a
WKT geometry type (`POINT`, `POLYGON`, `GEOMETRYCOLLECTION` and so on, in any
case), so a bracketed pair in other text is not mistaken for one. Null for
GeoJSON, text with no such position, a first position that fits the order
given, and one that fits neither.

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

## Signature

```ts
import { suggestWktAxisOrder } from "@mapcairn/core";
 
function suggestWktAxisOrder(text: string, order: WktAxisOrder): WktAxisOrder | null;
```

## Parameters

- `text` (`string`)
- `order` (`WktAxisOrder`): The order the text is being read in.

## Returns

`WktAxisOrder | null`

## Remarks

Only the first [`MAX_AXIS_SCAN_CHARACTERS`](https://docs.mapcairn.com/api/core/MAX_AXIS_SCAN_CHARACTERS.md) characters are
 read, and text over [`MAX_IMPORT_BYTES`](https://docs.mapcairn.com/api/core/MAX_IMPORT_BYTES.md) gets no suggestion, since
 [`parseShapeFile`](https://docs.mapcairn.com/api/core/parseShapeFile.md) would refuse it. The scan is one pass with no
 recursion, so the depth limit does not apply to it.

## See also

- [`WktAxisOrder`](https://docs.mapcairn.com/api/core/WktAxisOrder.md)

Source: [packages/core/src/draw/import.ts:889](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/draw/import.ts#L889)
