Skip to content

Function: registerProjections() ​

ts
function registerProjections(projections): void;

Defined in: projections.ts:87

Adds projections to the lookup table, replacing any existing entry for the same code.

Use it for in-house or local grid definitions that have no EPSG code, or to override a standard definition with your own.

Parameters ​

ParameterTypeDescription
projectionsRecord<number, string>Map of EPSG code to ESRI WKT.

Returns ​

void

Example ​

ts
registerProjections({ 900914: 'PROJCS["County Grid", ... ]' });
await writeShapefileZip(data, { epsg: 900914 });

Released under the MIT License.