Function: default()
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?
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"
string | URL