Skip to main content

Function: default()

default(url?): Promise<Map<number, string>>

Defined in: all.ts:19

Load the EPSG database into memory.

The database is stored as a gzipped CSV file. This function loads and parses the file, returning a map of EPSG code to WKT string.

The result is cached after the first call, so subsequent calls will return the cached result.

Parameters

url?

string | URL

Optional URL to the gzipped CSV file. When using a bundler like Vite, pass the asset URL directly to ensure correct resolution: import csvUrl from "@developmentseed/epsg/all.csv.gz?url"

Returns

Promise<Map<number, string>>