Skip to content

Function: loadProjectionTable() ​

ts
function loadProjectionTable(): Promise<void>;

Defined in: projections.ts:68

Loads the full bundled EPSG table immediately.

Calling this is optional — writeShapefile loads the table by itself when it meets a code it does not recognise. Reach for it when you would rather pay the cost up front, or when you want getProjection, which is synchronous, to see every code.

Returns ​

Promise<void>

Example ​

ts
await loadProjectionTable();
getProjection(26915); // NAD83 / UTM zone 15N

Released under the MIT License.