feat: New @developmentseed/epsg package for shipping compressed EPSG code bundle#262
Merged
kylebarron merged 27 commits intomainfrom Mar 2, 2026
Merged
feat: New @developmentseed/epsg package for shipping compressed EPSG code bundle#262kylebarron merged 27 commits intomainfrom
@developmentseed/epsg package for shipping compressed EPSG code bundle#262kylebarron merged 27 commits intomainfrom
Conversation
kylebarron
commented
Feb 25, 2026
Member
Author
|
just noting that proj can be compiled to Wasm now: https://willcohen.github.io/clj-proj/ |
@developmentseed/epsg package for shipping compressed EPSG code bundle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The full EPSG projection database, compressed to 309kb for the web.
Some existing EPSG amalgamations exist, but all are uncompressed, incomplete, outdated, and/or not reproducible 1 2 3 4. This package uses the DecompressionStream API, now widely available in browsers, to bundle a gzip-compressed text file of WKT definitions for all 7352 defined EPSG codes.
Usage
Currently, the only package entrypoint is
@developmentseed/epsg/all, which loads aMap<number, string>, with all EPSG definitions in OGC WKT2 format.Footnotes
epsgincludes only 3912 definitions, stores older, deprecated proj strings, and is uncompressed, coming to 500kb. ↩epsg-indexstores extra parsed information for each projection and is 7.7 MB. ↩proj4-listincludes only 5434 definitions, stores older, deprecated proj strings, and is 759KB of uncompressed strings. ↩@esri/proj-codesships a lot of redundant information, coming to nearly 15MB of JSON. ↩