{"id":28958707,"url":"https://github.com/derzade/epsg-index-2","last_synced_at":"2026-05-18T13:34:24.445Z","repository":{"id":299995155,"uuid":"1004519815","full_name":"DerZade/epsg-index-2","owner":"DerZade","description":"An up-to-date list of all known EPSGs definitions as well as the nadgrid files, which are referenced by at least one EPSG definitions.","archived":false,"fork":false,"pushed_at":"2025-06-19T10:07:52.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-19T10:42:50.059Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DerZade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-18T18:51:14.000Z","updated_at":"2025-06-19T10:07:55.000Z","dependencies_parsed_at":"2025-06-19T10:42:58.539Z","dependency_job_id":"e899be21-f6ef-4f51-8c39-910c502d735d","html_url":"https://github.com/DerZade/epsg-index-2","commit_stats":null,"previous_names":["derzade/epsg-index-2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DerZade/epsg-index-2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerZade%2Fepsg-index-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerZade%2Fepsg-index-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerZade%2Fepsg-index-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerZade%2Fepsg-index-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DerZade","download_url":"https://codeload.github.com/DerZade/epsg-index-2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerZade%2Fepsg-index-2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261571502,"owners_count":23178767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-23T23:06:18.572Z","updated_at":"2025-12-27T16:09:24.067Z","avatar_url":"https://github.com/DerZade.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `epsg-index-2`\n\n_A spiritual successor to\n[`epsg-index`](https://github.com/derhuerst/epsg-index)_\n\n`epsg-index-2` includes an _up-to-date\\*_ list of all known EPSGs definitions as well as the nadgrid files, which are referenced by at least one EPSG definitions.\n\n_\\* The list of EPSGs is loaded from the [MapTiler](https://www.maptiler.com/) API once a week._\n\n## Installing\n\n```sh\nnpm install epsg-index-2\n```\n\n## Usage\n\n```ts\n// import a single EPSG definition:\nimport EPSG_4326 from 'epsg-index-2/4326';\n\nconsole.log(EPSG_4326);\n\n// or import all EPSGs at once:\nimport ALL_EPSGS from 'epsg-index-2'; // WARNING: this is over 5MB (or 500kB gzipped)\n\nconsole.log(ALL_EPSGS[4326]);\n```\n\n```js\n{\n  code: 3857,\n  name: 'WGS 84 / Pseudo-Mercator',\n  wkt: 'PROJCS[\"WGS 84 / Pseudo-Mercator\",GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]],PROJECTION[\"Mercator_1SP\"],PARAMETER[\"central_meridian\",0],PARAMETER[\"scale_factor\",1],PARAMETER[\"false_easting\",0],PARAMETER[\"false_northing\",0],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"Easting\",EAST],AXIS[\"Northing\",NORTH],EXTENSION[\"PROJ4\",\"+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs\"],AUTHORITY[\"EPSG\",\"3857\"]]',\n  proj4: '+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs +type=crs',\n  bbox: [ -180, -85.06, 180, 85.06 ],\n  unit: 'metre',\n  area: 'World between 85.06°S and 85.06°N.',\n  accuracy: null,\n  deprecated: false\n}\n```\n\n_(check the [`index.d.ts`](./index.d.ts) for exact types)_\n\n## Using Grids\n\nSome EPSG definitions reference nadgrids files. For example `EPSG:3396`\nreferences `de_adv_BETA2007.tif` like this:\n\n```\n+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=bessel +nadgrids=de_adv_BETA2007.tif +units=m +no_defs +type=crs\n```\n\nIf you want to use the projection with something like\n[`proj4js`](https://github.com/proj4js/proj4js), you may need to load these grid\nfiles.\n\nYou can load grids directly from this module's `grids/` subdirectory:\n\n```ts\nimport proj4 from 'proj4';\nimport { fromUrl } from 'geotiff';\n\nimport EPSG_3396 from 'epsg-index-2/3396';\n// WARNING: ?url import only works with Vite, but other bundlers may have similar features\n// (see https://vite.dev/guide/assets#explicit-url-imports)\nimport BETA2007_URL from 'epsg-index-2/grids/de_adv_BETA2007.tif?url';\n\nconst tiff = await fromUrl(BETA2007_URL);\nawait proj4.nadgrid('de_adv_BETA2007.tif', tiff).ready;\n\nproj4.defs('EPSG:3396', EPSG_3396.proj4);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderzade%2Fepsg-index-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderzade%2Fepsg-index-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderzade%2Fepsg-index-2/lists"}